Conditions | 4 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | private function resolveConstructorArguments(ReflectionMethod $constructor, array $arguments): array |
||
33 | { |
||
34 | $constructorParameters = $constructor->getParameters(); |
||
35 | |||
36 | foreach ($constructorParameters as $position => $parameter) { |
||
37 | if ($parameter->getClass() && $service = $this->resolve($parameter->getClass())) { |
||
38 | $arguments[$position] = $service; |
||
39 | } |
||
40 | } |
||
41 | |||
42 | return $arguments; |
||
43 | } |
||
44 | |||
52 |