mark search service provider as private

This commit is contained in:
2020-07-28 14:54:16 +02:00
parent 9b4a71ef8b
commit c74f242050
9 changed files with 62 additions and 31 deletions

View File

@@ -37,10 +37,6 @@ services:
arguments:
- "@doctrine.orm.entity_manager"
chill.main.search_provider:
class: Chill\MainBundle\Search\SearchProvider
public: true
chill.main.validator.role_scope_scope_presence:
class: Chill\MainBundle\Validation\Validator\RoleScopeScopePresence
arguments:

View File

@@ -10,3 +10,10 @@ services:
arguments:
$chillLogger: '@monolog.logger.chill'
tags: ['controller.service_arguments']
Chill\MainBundle\Controller\SearchController:
arguments:
$searchProvider: '@chill_main.search_provider'
$translator: '@Symfony\Component\Translation\TranslatorInterface'
$paginatorFactory: '@Chill\MainBundle\Pagination\PaginatorFactory'
tags: ['controller.service_arguments']

View File

@@ -123,7 +123,7 @@ services:
chill.main.form.advanced_search_type:
class: Chill\MainBundle\Form\AdvancedSearchType
arguments:
- "@chill.main.search_provider"
- "@chill_main.search_provider"
tags:
- { name: form.type }

View File

@@ -0,0 +1,3 @@
services:
chill_main.search_provider:
class: Chill\MainBundle\Search\SearchProvider