mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-02 23:16:13 +00:00
fix sf4 deprecated service argument syntax
This commit is contained in:
parent
f833a08515
commit
3c5082dafb
@ -15,10 +15,10 @@ use Chill\MainBundle\Form\Type\TranslatableStringFormType;
|
||||
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
|
||||
*/
|
||||
private $translator;
|
||||
|
@ -2,10 +2,12 @@ parameters:
|
||||
# cl_custom_fields.example.class: Chill\CustomFieldsBundle\Example
|
||||
|
||||
services:
|
||||
|
||||
chill.custom_field.provider:
|
||||
class: Chill\CustomFieldsBundle\Service\CustomFieldProvider
|
||||
calls:
|
||||
- [setContainer, ["@service_container"]]
|
||||
|
||||
Chill\CustomFieldsBundle\Service\CustomFieldProvider: '@chill.custom_field.provider'
|
||||
|
||||
chill.custom_field.custom_field_choice_type:
|
||||
@ -20,7 +22,7 @@ services:
|
||||
chill.custom_field.custom_fields_group_type:
|
||||
class: Chill\CustomFieldsBundle\Form\CustomFieldsGroupType
|
||||
arguments:
|
||||
- %chill_custom_fields.customizables_entities%
|
||||
- "%chill_custom_fields.customizables_entities%"
|
||||
- "@translator"
|
||||
tags:
|
||||
- { name: 'form.type', alias: 'custom_fields_group' }
|
||||
|
Loading…
x
Reference in New Issue
Block a user