Merge branch 'sf4' of framagit.org:Chill-project/Chill-Doc-Store into sf4

This commit is contained in:
Tchama 2020-07-28 16:56:58 +02:00
commit ff8632fc93
2 changed files with 7 additions and 4 deletions

View File

@ -49,8 +49,11 @@ class DocumentPersonController extends Controller
* @param EventDispatcherInterface $eventDispatcher
* @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->eventDispatcher = $eventDispatcher;
$this->authorizationHelper = $authorizationHelper;

View File

@ -4,8 +4,8 @@ services:
tags: ['controller.service_arguments']
Chill\DocStoreBundle\Controller\DocumentPersonController:
autowire: true
public: true # TODO sf4, check if service could be public
arguments:
$translator: '@Symfony\Component\Translation\TranslatorInterface'
$eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface'
$authorizationHelper: '@Chill\MainBundle\Security\Authorization\AuthorizationHelper'
tags: ['controller.service_arguments']