From ac9d0242ad3c5e66a9b6de0fb79b88a00648f2fb Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Thu, 6 May 2021 17:35:39 +0200 Subject: [PATCH] Fix controllers and use auto-discovery. --- src/Bundle/ChillPersonBundle/config/services.yaml | 4 ++++ .../config/services/controller.yaml | 12 ------------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/config/services.yaml b/src/Bundle/ChillPersonBundle/config/services.yaml index 0f357a300..72b732777 100644 --- a/src/Bundle/ChillPersonBundle/config/services.yaml +++ b/src/Bundle/ChillPersonBundle/config/services.yaml @@ -38,6 +38,10 @@ services: tags: - { name: validator.constraint_validator, alias: birthdate_not_before } + Chill\PersonBundle\Controller\: + resource: '../src/Controller/' + tags: ['controller.service_arguments'] + Chill\PersonBundle\Repository\: resource: '../src/Repository/' tags: ['doctrine.repository_service'] diff --git a/src/Bundle/ChillPersonBundle/config/services/controller.yaml b/src/Bundle/ChillPersonBundle/config/services/controller.yaml index dc575f320..4a5956dc8 100644 --- a/src/Bundle/ChillPersonBundle/config/services/controller.yaml +++ b/src/Bundle/ChillPersonBundle/config/services/controller.yaml @@ -1,16 +1,4 @@ services: - Chill\PersonBundle\Controller\PersonController: - arguments: - $similarPersonMatcher: '@Chill\PersonBundle\Search\SimilarPersonMatcher' - $translator: '@Symfony\Component\Translation\TranslatorInterface' - $eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface' - $personRepository: '@Chill\PersonBundle\Repository\PersonRepository' - $configPersonAltNameHelper: '@Chill\PersonBundle\Config\ConfigPersonAltNamesHelper' - $logger: '@Psr\Log\LoggerInterface' - $validator: '@Symfony\Component\Validator\Validator\ValidatorInterface' - $em: '@Doctrine\ORM\EntityManagerInterface' - tags: ['controller.service_arguments'] - Chill\PersonBundle\Controller\TimelinePersonController: arguments: $eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface'