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