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
2221057f
Commit
2221057f
authored
Mar 14, 2019
by
Bertrand Gauthier
Browse files
Corrections pour passer à ZF3.
parent
400c87f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/UnicaenFaq/Controller/Factory/FaqControllerFactory.php
View file @
2221057f
...
...
@@ -2,10 +2,10 @@
namespace
UnicaenFaq\Controller\Factory
;
use
Interop\Container\ContainerInterface
;
use
UnicaenFaq\Controller\FaqController
;
use
UnicaenFaq\Form\FaqForm
;
use
UnicaenFaq\Service\FaqService
;
use
Zend\Mvc\Controller\ControllerManager
;
use
Zend\ServiceManager\ServiceLocatorInterface
;
class
FaqControllerFactory
...
...
@@ -13,15 +13,15 @@ class FaqControllerFactory
/**
* Create service
*
* @param Cont
rollerManager $controllerManag
er
* @param Cont
ainerInterface $contain
er
* @return FaqController
*/
public
function
__invoke
(
Cont
rollerManager
$controllerManag
er
)
public
function
__invoke
(
Cont
ainerInterface
$contain
er
)
{
$faqService
=
$this
->
getFaqService
(
$cont
rollerManag
er
);
$faqService
=
$this
->
getFaqService
(
$cont
ain
er
);
/** @var FaqForm $form */
$form
=
$cont
rollerManag
er
->
get
(
'FormElementManager'
)
->
get
(
'UnicaenFaq\Form\FaqForm'
);
$form
=
$cont
ain
er
->
get
(
'FormElementManager'
)
->
get
(
'UnicaenFaq\Form\FaqForm'
);
$controller
=
new
FaqController
(
$form
);
$controller
->
setFaqService
(
$faqService
);
...
...
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