Commit cabe4c94 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Corrections pour passer à ZF3.

parent 8a913136
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2,8 +2,8 @@

namespace UnicaenLeocarte\Controller;

use Interop\Container\ContainerInterface;
use UnicaenLeocarte\Options\ModuleOptions;
use Zend\Mvc\Controller\ControllerManager;

/**
 * IndexController factory.
@@ -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);