resolving deprecated private service injection on commands classes

This commit is contained in:
2021-01-26 11:56:07 +01:00
parent e053bf999e
commit 9f54665836
5 changed files with 96 additions and 20 deletions

View 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 }

View 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']