Loading src/UnicaenLeocarte/Controller/IndexControllerFactory.php +4 −4 Original line number Diff line number Diff line Loading @@ -2,8 +2,8 @@ namespace UnicaenLeocarte\Controller; use Interop\Container\ContainerInterface; use UnicaenLeocarte\Options\ModuleOptions; use Zend\Mvc\Controller\ControllerManager; /** * IndexController factory. Loading @@ -12,13 +12,13 @@ use Zend\Mvc\Controller\ControllerManager; */ class IndexControllerFactory { function __invoke(ControllerManager $controllerManager) function __invoke(ContainerInterface $container) { /** @var ModuleOptions $options */ $options = $controllerManager->getServiceLocator()->get('UnicaenLeocarte\Options'); $options = $container->get('UnicaenLeocarte\Options'); /** @var \UnicaenLeocarte\Service\Photo\PhotoService $photoService */ $photoService = $controllerManager->getServiceLocator()->get('UnicaenLeocarte\Service\Photo'); $photoService = $container->get('UnicaenLeocarte\Service\Photo'); $controller = new IndexController(); $controller->setPhotoService($photoService); Loading Loading
src/UnicaenLeocarte/Controller/IndexControllerFactory.php +4 −4 Original line number Diff line number Diff line Loading @@ -2,8 +2,8 @@ namespace UnicaenLeocarte\Controller; use Interop\Container\ContainerInterface; use UnicaenLeocarte\Options\ModuleOptions; use Zend\Mvc\Controller\ControllerManager; /** * IndexController factory. Loading @@ -12,13 +12,13 @@ use Zend\Mvc\Controller\ControllerManager; */ class IndexControllerFactory { function __invoke(ControllerManager $controllerManager) function __invoke(ContainerInterface $container) { /** @var ModuleOptions $options */ $options = $controllerManager->getServiceLocator()->get('UnicaenLeocarte\Options'); $options = $container->get('UnicaenLeocarte\Options'); /** @var \UnicaenLeocarte\Service\Photo\PhotoService $photoService */ $photoService = $controllerManager->getServiceLocator()->get('UnicaenLeocarte\Service\Photo'); $photoService = $container->get('UnicaenLeocarte\Service\Photo'); $controller = new IndexController(); $controller->setPhotoService($photoService); Loading