Skip to content

Commit

Permalink
Inject service locator into logger factory
Browse files Browse the repository at this point in the history
  • Loading branch information
neeckeloo committed Dec 5, 2014
1 parent 17e0940 commit 0d8e396
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Factory/LoggerAbstractFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $
$loggerConfig = $this->getLoggerConfig($config['monolog'], $requestedName);

$factory = $serviceLocator->get('MonologModule\Factory\LoggerFactory');
$factory->setServiceLocator($serviceLocator);

return $factory->create($loggerConfig);
}
Expand Down

0 comments on commit 0d8e396

Please sign in to comment.