mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
Merge branch 'sf4' of framagit.org:Chill-project/Chill-Doc-Store into sf4
This commit is contained in:
commit
ff8632fc93
@ -49,8 +49,11 @@ class DocumentPersonController extends Controller
|
|||||||
* @param EventDispatcherInterface $eventDispatcher
|
* @param EventDispatcherInterface $eventDispatcher
|
||||||
* @param AuthorizationHelper $authorizationHelper
|
* @param AuthorizationHelper $authorizationHelper
|
||||||
*/
|
*/
|
||||||
public function __construct(TranslatorInterface $translator, EventDispatcherInterface $eventDispatcher, AuthorizationHelper $authorizationHelper)
|
public function __construct(
|
||||||
{
|
TranslatorInterface $translator,
|
||||||
|
EventDispatcherInterface $eventDispatcher,
|
||||||
|
AuthorizationHelper $authorizationHelper
|
||||||
|
) {
|
||||||
$this->translator = $translator;
|
$this->translator = $translator;
|
||||||
$this->eventDispatcher = $eventDispatcher;
|
$this->eventDispatcher = $eventDispatcher;
|
||||||
$this->authorizationHelper = $authorizationHelper;
|
$this->authorizationHelper = $authorizationHelper;
|
||||||
|
@ -4,8 +4,8 @@ services:
|
|||||||
tags: ['controller.service_arguments']
|
tags: ['controller.service_arguments']
|
||||||
|
|
||||||
Chill\DocStoreBundle\Controller\DocumentPersonController:
|
Chill\DocStoreBundle\Controller\DocumentPersonController:
|
||||||
autowire: true
|
|
||||||
public: true # TODO sf4, check if service could be public
|
|
||||||
arguments:
|
arguments:
|
||||||
|
$translator: '@Symfony\Component\Translation\TranslatorInterface'
|
||||||
$eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface'
|
$eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface'
|
||||||
$authorizationHelper: '@Chill\MainBundle\Security\Authorization\AuthorizationHelper'
|
$authorizationHelper: '@Chill\MainBundle\Security\Authorization\AuthorizationHelper'
|
||||||
|
tags: ['controller.service_arguments']
|
Loading…
x
Reference in New Issue
Block a user