Commit 9a8d8356 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Modufucations pour passer à ZF3.

parent 2221057f
......@@ -38,7 +38,7 @@ return array(
],
],
'guards' => [
'\UnicaenAuth\Guard\PrivilegeController' => [
'BjyAuthorize\Guard\Controller' => [
[
'controller' => 'UnicaenFaq\Controller\Index',
'action' => [
......
......@@ -2,16 +2,16 @@
namespace UnicaenFaq\Form\Factory;
use UnicaenFaq\Form\FaqForm;
use DoctrineModule\Stdlib\Hydrator\DoctrineObject;
use Zend\Form\FormElementManager\FormElementManagerV3Polyfill;
use Interop\Container\ContainerInterface;
use UnicaenFaq\Form\FaqForm;
class FaqFormFactory
{
public function __invoke(FormElementManagerV3Polyfill $formElementManager)
public function __invoke(ContainerInterface $container)
{
/** @var DoctrineObject $hydrator */
$hydrator = $formElementManager->get('HydratorManager')->get('DoctrineModule\Stdlib\Hydrator\DoctrineObject');
$hydrator = $container->get('HydratorManager')->get('DoctrineModule\Stdlib\Hydrator\DoctrineObject');
$form = new FaqForm();
$form->setHydrator($hydrator);
......
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