@@ -60,6 +60,9 @@ discard block |
||
60 | 60 | return $this->createLogger($container, $requestedName); |
61 | 61 | } |
62 | 62 | |
63 | + /** |
|
64 | + * @param ContainerInterface $container |
|
65 | + */ |
|
63 | 66 | private function createLogger($container, $requestedName) |
64 | 67 | { |
65 | 68 | $config = $this->getConfig($container); |
@@ -70,7 +73,7 @@ discard block |
||
70 | 73 | |
71 | 74 | /** |
72 | 75 | * @param ServiceLocatorInterface|ContainerInterface $container |
73 | - * @return array |
|
76 | + * @return ContainerInterface |
|
74 | 77 | */ |
75 | 78 | public function getConfig($container) |
76 | 79 | { |
@@ -117,7 +117,7 @@ |
||
117 | 117 | throw new RuntimeException(sprintf('Handler(%s) requires at least %d params. Only %d passed.', $handler['name'], $requiredArgsCount, count($handlerOptions))); |
118 | 118 | } |
119 | 119 | |
120 | - foreach($reflection->getConstructor()->getParameters() as $parameter) { |
|
120 | + foreach ($reflection->getConstructor()->getParameters() as $parameter) { |
|
121 | 121 | if (!$parameter->isOptional() && !isset($handlerOptions[$parameter->getName()])) { |
122 | 122 | $argumentValue = array_shift($handlerOptions); |
123 | 123 | } elseif (isset($handlerOptions[$parameter->getName()])) { |