Skip to content
Snippets Groups Projects

Passage à ZF3

Merged Bertrand Gauthier requested to merge release-3.0.0 into master
7 files
+ 499
515
Compare changes
  • Side-by-side
  • Inline

Files

@@ -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);
Loading