Commit 2221057f authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Corrections pour passer à ZF3.

parent 400c87f6
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
namespace UnicaenFaq\Controller\Factory; namespace UnicaenFaq\Controller\Factory;
use Interop\Container\ContainerInterface;
use UnicaenFaq\Controller\FaqController; use UnicaenFaq\Controller\FaqController;
use UnicaenFaq\Form\FaqForm; use UnicaenFaq\Form\FaqForm;
use UnicaenFaq\Service\FaqService; use UnicaenFaq\Service\FaqService;
use Zend\Mvc\Controller\ControllerManager;
use Zend\ServiceManager\ServiceLocatorInterface; use Zend\ServiceManager\ServiceLocatorInterface;
class FaqControllerFactory class FaqControllerFactory
...@@ -13,15 +13,15 @@ class FaqControllerFactory ...@@ -13,15 +13,15 @@ class FaqControllerFactory
/** /**
* Create service * Create service
* *
* @param ControllerManager $controllerManager * @param ContainerInterface $container
* @return FaqController * @return FaqController
*/ */
public function __invoke(ControllerManager $controllerManager) public function __invoke(ContainerInterface $container)
{ {
$faqService = $this->getFaqService($controllerManager); $faqService = $this->getFaqService($container);
/** @var FaqForm $form */ /** @var FaqForm $form */
$form = $controllerManager->get('FormElementManager')->get('UnicaenFaq\Form\FaqForm'); $form = $container->get('FormElementManager')->get('UnicaenFaq\Form\FaqForm');
$controller = new FaqController($form); $controller = new FaqController($form);
$controller->setFaqService($faqService); $controller->setFaqService($faqService);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment