fix sf4 deprecated service argument syntax

This commit is contained in:
Tchama 2020-07-16 15:20:56 +02:00
parent f833a08515
commit 3c5082dafb
2 changed files with 5 additions and 3 deletions

View File

@ -15,10 +15,10 @@ use Chill\MainBundle\Form\Type\TranslatableStringFormType;
class CustomFieldsGroupType extends AbstractType class CustomFieldsGroupType extends AbstractType
{ {
private $customizableEntities; //TOOD : add comment about this variable
private $customizableEntities; //TODO : add comment about this variable
/** /**
*
* @var \Symfony\Component\Translation\TranslatorInterface * @var \Symfony\Component\Translation\TranslatorInterface
*/ */
private $translator; private $translator;

View File

@ -2,10 +2,12 @@ parameters:
# cl_custom_fields.example.class: Chill\CustomFieldsBundle\Example # cl_custom_fields.example.class: Chill\CustomFieldsBundle\Example
services: services:
chill.custom_field.provider: chill.custom_field.provider:
class: Chill\CustomFieldsBundle\Service\CustomFieldProvider class: Chill\CustomFieldsBundle\Service\CustomFieldProvider
calls: calls:
- [setContainer, ["@service_container"]] - [setContainer, ["@service_container"]]
Chill\CustomFieldsBundle\Service\CustomFieldProvider: '@chill.custom_field.provider' Chill\CustomFieldsBundle\Service\CustomFieldProvider: '@chill.custom_field.provider'
chill.custom_field.custom_field_choice_type: chill.custom_field.custom_field_choice_type:
@ -20,7 +22,7 @@ services:
chill.custom_field.custom_fields_group_type: chill.custom_field.custom_fields_group_type:
class: Chill\CustomFieldsBundle\Form\CustomFieldsGroupType class: Chill\CustomFieldsBundle\Form\CustomFieldsGroupType
arguments: arguments:
- %chill_custom_fields.customizables_entities% - "%chill_custom_fields.customizables_entities%"
- "@translator" - "@translator"
tags: tags:
- { name: 'form.type', alias: 'custom_fields_group' } - { name: 'form.type', alias: 'custom_fields_group' }