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()
|
||||
{
|
||||
// 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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' }
|
||||
# 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.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
|
||||
@ -124,4 +125,3 @@ services:
|
||||
factory: ["@doctrine", getRepository]
|
||||
arguments:
|
||||
- "Chill\\CustomFieldsBundle\\Entity\\CustomFieldLongChoice\\Option"
|
||||
|
Loading…
x
Reference in New Issue
Block a user