mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-06 14:54:57 +00:00
resolving deprecated private service injection on commands classes
This commit is contained in:
10
config/services/command.yaml
Normal file
10
config/services/command.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
services:
|
||||
Chill\CustomFieldsBundle\Command\CreateFieldsOnGroupCommand:
|
||||
arguments:
|
||||
$customFieldProvider: '@chill.custom_field.provider'
|
||||
$entityManager: '@doctrine.orm.default_entity_manager'
|
||||
$validator: '@Symfony\Component\Validator\Validator\ValidatorInterface'
|
||||
$availableLanguages: '%chill_main.available_languages%'
|
||||
$customizablesEntities: '%chill_custom_fields.customizables_entities%'
|
||||
tags:
|
||||
- { name: console.command }
|
9
config/services/controller.yaml
Normal file
9
config/services/controller.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
services:
|
||||
Chill\CustomFieldsBundle\Controller\:
|
||||
resource: '../../Controller'
|
||||
tags: ['controller.service_arguments']
|
||||
|
||||
Chill\CustomFieldsBundle\Controller\CustomFieldsGroupController:
|
||||
arguments:
|
||||
$customFieldProvider: '@chill.custom_field.provider'
|
||||
tags: ['controller.service_arguments']
|
Reference in New Issue
Block a user