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
9a8d8356
Commit
9a8d8356
authored
Mar 20, 2019
by
Bertrand Gauthier
Browse files
Modufucations pour passer à ZF3.
parent
2221057f
Changes
2
Hide whitespace changes
Inline
Side-by-side
config/module.config.php
View file @
9a8d8356
...
...
@@ -38,7 +38,7 @@ return array(
],
],
'guards'
=>
[
'
\UnicaenAuth\Guard\Privilege
Controller'
=>
[
'
BjyAuthorize\Guard\
Controller'
=>
[
[
'controller'
=>
'UnicaenFaq\Controller\Index'
,
'action'
=>
[
...
...
src/UnicaenFaq/Form/Factory/FaqFormFactory.php
View file @
9a8d8356
...
...
@@ -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
$formElementManag
er
)
public
function
__invoke
(
ContainerInterface
$contain
er
)
{
/** @var DoctrineObject $hydrator */
$hydrator
=
$
formElementManag
er
->
get
(
'HydratorManager'
)
->
get
(
'DoctrineModule\Stdlib\Hydrator\DoctrineObject'
);
$hydrator
=
$
contain
er
->
get
(
'HydratorManager'
)
->
get
(
'DoctrineModule\Stdlib\Hydrator\DoctrineObject'
);
$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