Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
faq
Commits
c6f03783
Commit
c6f03783
authored
Mar 20, 2019
by
Bertrand Gauthier
Browse files
Corrections pour ZF3.
parent
9a8d8356
Changes
2
Hide whitespace changes
Inline
Side-by-side
config/module.config.php
View file @
c6f03783
...
...
@@ -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
;
...
...
@@ -38,7 +39,7 @@ return array(
],
],
'guards'
=>
[
'BjyAuthorize\Guard\
Controller
'
=>
[
Privilege
Controller
::
class
=>
[
[
'controller'
=>
'UnicaenFaq\Controller\Index'
,
'action'
=>
[
...
...
src/UnicaenFaq/Form/Factory/FaqFormFactory.php
View file @
c6f03783
...
...
@@ -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
(
Hydrator
Plugin
Manager
::
class
)
->
get
(
DoctrineObject
::
class
);
$form
=
new
FaqForm
();
$form
->
setHydrator
(
$hydrator
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment