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'