Merge branch 'fix/use-autoconfigure-and-autowire' into 'master'

Update controller and the way they are autoloaded

See merge request Chill-Projet/chill-bundles!149
This commit is contained in:
Julien Fastré 2021-09-24 08:33:03 +00:00
commit f93c2d8d32

View File

@ -1,11 +1,9 @@
services:
Chill\DocStoreBundle\Controller\:
resource: '../../Controller'
tags: ['controller.service_arguments']
_defaults:
autowire: true
autoconfigure: true
Chill\DocStoreBundle\Controller\:
resource: "../../Controller"
tags: ["controller.service_arguments"]
Chill\DocStoreBundle\Controller\DocumentPersonController:
arguments:
$translator: '@Symfony\Component\Translation\TranslatorInterface'
$eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface'
$authorizationHelper: '@Chill\MainBundle\Security\Authorization\AuthorizationHelper'
tags: ['controller.service_arguments']