mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-28 17:44:58 +00:00
Replaced most of the invocations of getDoctrine()->getManager() with ManagerRegistry->getManager(), and added ManagerRegistry injection to controllers where needed. This is part of an ongoing effort to improve code clarity, and avoid unnecessary method chaining in various parts of the codebase.
41 lines
1.5 KiB
YAML
41 lines
1.5 KiB
YAML
services:
|
|
_defaults:
|
|
autowire: true
|
|
autoconfigure: true
|
|
|
|
Chill\MainBundle\Controller\:
|
|
resource: '../../Controller'
|
|
tags: ['controller.service_arguments']
|
|
|
|
Chill\MainBundle\Controller\PasswordController:
|
|
arguments:
|
|
$chillLogger: '@monolog.logger.chill'
|
|
tags: ['controller.service_arguments']
|
|
|
|
Chill\MainBundle\Controller\SearchController:
|
|
arguments:
|
|
$searchProvider: '@chill_main.search_provider'
|
|
$translator: '@Symfony\Contracts\Translation\TranslatorInterface'
|
|
$paginatorFactory: '@Chill\MainBundle\Pagination\PaginatorFactory'
|
|
$searchApi: '@Chill\MainBundle\Search\SearchApi'
|
|
tags: ['controller.service_arguments']
|
|
|
|
Chill\MainBundle\Controller\PermissionsGroupController:
|
|
arguments:
|
|
$translatableStringHelper: '@Chill\MainBundle\Templating\TranslatableStringHelper'
|
|
$roleProvider: '@chill.main.role_provider'
|
|
$roleHierarchy: '@security.role_hierarchy'
|
|
$translator: '@Symfony\Contracts\Translation\TranslatorInterface'
|
|
$validator: '@Symfony\Component\Validator\Validator\ValidatorInterface'
|
|
tags: ['controller.service_arguments']
|
|
|
|
Chill\MainBundle\Controller\NotificationController:
|
|
tags: ['controller.service_arguments']
|
|
|
|
Chill\MainBundle\Controller\RegroupmentController:
|
|
autowire: true
|
|
autoconfigure: true
|
|
|
|
Chill\MainBundle\Controller\UserExportController:
|
|
tags: ['controller.service_arguments']
|