mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
fix deprecations: no more need to define these services (that cause a deprecation...)
This commit is contained in:
parent
0a08c362bb
commit
ed526fa8ea
@ -30,8 +30,7 @@ class PostTextIntegerExtension extends PostTextExtension
|
|||||||
{
|
{
|
||||||
public function getExtendedType()
|
public function getExtendedType()
|
||||||
{
|
{
|
||||||
// return IntegerType::class; !! only for symfony 2.8
|
return IntegerType::class;
|
||||||
return 'integer';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -28,8 +28,7 @@ class PostTextNumberExtension extends PostTextExtension
|
|||||||
{
|
{
|
||||||
public function getExtendedType()
|
public function getExtendedType()
|
||||||
{
|
{
|
||||||
//return PostTextNumberExtension::class;
|
return PostTextNumberExtension::class;
|
||||||
return 'number';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ services:
|
|||||||
- "@chill.main.helper.translatable_string"
|
- "@chill.main.helper.translatable_string"
|
||||||
tags:
|
tags:
|
||||||
- { name: 'chill.custom_field', type: 'text' }
|
- { name: 'chill.custom_field', type: 'text' }
|
||||||
|
|
||||||
chill.custom_field.number:
|
chill.custom_field.number:
|
||||||
class: Chill\CustomFieldsBundle\CustomFields\CustomFieldNumber
|
class: Chill\CustomFieldsBundle\CustomFields\CustomFieldNumber
|
||||||
arguments:
|
arguments:
|
||||||
@ -48,15 +48,16 @@ services:
|
|||||||
tags:
|
tags:
|
||||||
- { name: 'chill.custom_field', type: 'number' }
|
- { name: 'chill.custom_field', type: 'number' }
|
||||||
|
|
||||||
chill.form_extension.post_text_integer:
|
# no more used in symfony 3.x
|
||||||
class: Chill\CustomFieldsBundle\Form\Extension\PostTextIntegerExtension
|
# chill.form_extension.post_text_integer:
|
||||||
tags:
|
# class: Chill\CustomFieldsBundle\Form\Extension\PostTextIntegerExtension
|
||||||
- { name: form.type_extension, alias: 'integer' }
|
# tags:
|
||||||
|
# - { name: form.type_extension, alias: 'integer' }
|
||||||
chill.form_extension.post_text_number:
|
|
||||||
class: Chill\CustomFieldsBundle\Form\Extension\PostTextNumberExtension
|
# chill.form_extension.post_text_number:
|
||||||
tags:
|
# class: Chill\CustomFieldsBundle\Form\Extension\PostTextNumberExtension
|
||||||
- { name: form.type_extension, alias: 'number' }
|
# tags:
|
||||||
|
# - { name: form.type_extension, alias: 'number' }
|
||||||
|
|
||||||
chill.custom_field.choice:
|
chill.custom_field.choice:
|
||||||
class: Chill\CustomFieldsBundle\CustomFields\CustomFieldChoice
|
class: Chill\CustomFieldsBundle\CustomFields\CustomFieldChoice
|
||||||
@ -109,7 +110,7 @@ services:
|
|||||||
- "%chill_custom_fields.show_empty_values%"
|
- "%chill_custom_fields.show_empty_values%"
|
||||||
tags:
|
tags:
|
||||||
- { name: twig.extension }
|
- { name: twig.extension }
|
||||||
|
|
||||||
chill.custom_field.custom_field_long_choice:
|
chill.custom_field.custom_field_long_choice:
|
||||||
class: Chill\CustomFieldsBundle\CustomFields\CustomFieldLongChoice
|
class: Chill\CustomFieldsBundle\CustomFields\CustomFieldLongChoice
|
||||||
arguments:
|
arguments:
|
||||||
@ -118,10 +119,9 @@ services:
|
|||||||
- "@templating"
|
- "@templating"
|
||||||
tags:
|
tags:
|
||||||
- { name: 'chill.custom_field', type: 'long_choice' }
|
- { name: 'chill.custom_field', type: 'long_choice' }
|
||||||
|
|
||||||
chill.custom_field.custom_field_long_choice_option_repository:
|
chill.custom_field.custom_field_long_choice_option_repository:
|
||||||
class: Chill\CustomFieldsBundle\EntityRepository\CustomFieldLongChoice\OptionRepository
|
class: Chill\CustomFieldsBundle\EntityRepository\CustomFieldLongChoice\OptionRepository
|
||||||
factory: ["@doctrine", getRepository]
|
factory: ["@doctrine", getRepository]
|
||||||
arguments:
|
arguments:
|
||||||
- "Chill\\CustomFieldsBundle\\Entity\\CustomFieldLongChoice\\Option"
|
- "Chill\\CustomFieldsBundle\\Entity\\CustomFieldLongChoice\\Option"
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user