Loading config/module.config.php +2 −1 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ use Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain; use Doctrine\ORM\Mapping\Driver\XmlDriver; use UnicaenAuth\Guard\PrivilegeController; use UnicaenFaq\Controller\Factory\FaqControllerFactory; use UnicaenFaq\Form\Factory\FaqFormFactory; use UnicaenFaq\Provider\Privilege\FaqPrivileges; Loading Loading @@ -38,7 +39,7 @@ return array( ], ], 'guards' => [ 'BjyAuthorize\Guard\Controller' => [ PrivilegeController::class => [ [ 'controller' => 'UnicaenFaq\Controller\Index', 'action' => [ Loading src/UnicaenFaq/Form/Factory/FaqFormFactory.php +2 −1 Original line number Diff line number Diff line Loading @@ -5,13 +5,14 @@ namespace UnicaenFaq\Form\Factory; use DoctrineModule\Stdlib\Hydrator\DoctrineObject; use Interop\Container\ContainerInterface; use UnicaenFaq\Form\FaqForm; use Zend\Hydrator\HydratorPluginManager; class FaqFormFactory { public function __invoke(ContainerInterface $container) { /** @var DoctrineObject $hydrator */ $hydrator = $container->get('HydratorManager')->get('DoctrineModule\Stdlib\Hydrator\DoctrineObject'); $hydrator = $container->get(HydratorPluginManager::class)->get(DoctrineObject::class); $form = new FaqForm(); $form->setHydrator($hydrator); Loading Loading
config/module.config.php +2 −1 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ use Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain; use Doctrine\ORM\Mapping\Driver\XmlDriver; use UnicaenAuth\Guard\PrivilegeController; use UnicaenFaq\Controller\Factory\FaqControllerFactory; use UnicaenFaq\Form\Factory\FaqFormFactory; use UnicaenFaq\Provider\Privilege\FaqPrivileges; Loading Loading @@ -38,7 +39,7 @@ return array( ], ], 'guards' => [ 'BjyAuthorize\Guard\Controller' => [ PrivilegeController::class => [ [ 'controller' => 'UnicaenFaq\Controller\Index', 'action' => [ Loading
src/UnicaenFaq/Form/Factory/FaqFormFactory.php +2 −1 Original line number Diff line number Diff line Loading @@ -5,13 +5,14 @@ namespace UnicaenFaq\Form\Factory; use DoctrineModule\Stdlib\Hydrator\DoctrineObject; use Interop\Container\ContainerInterface; use UnicaenFaq\Form\FaqForm; use Zend\Hydrator\HydratorPluginManager; class FaqFormFactory { public function __invoke(ContainerInterface $container) { /** @var DoctrineObject $hydrator */ $hydrator = $container->get('HydratorManager')->get('DoctrineModule\Stdlib\Hydrator\DoctrineObject'); $hydrator = $container->get(HydratorPluginManager::class)->get(DoctrineObject::class); $form = new FaqForm(); $form->setHydrator($hydrator); Loading