mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 22:04:23 +00:00
fix error with post_text extension
This commit is contained in:
parent
23e68416a2
commit
5558db5102
@ -19,6 +19,8 @@
|
|||||||
|
|
||||||
namespace Chill\CustomFieldsBundle\Form\Extension;
|
namespace Chill\CustomFieldsBundle\Form\Extension;
|
||||||
|
|
||||||
|
use Symfony\Component\Form\Extension\Core\Type\NumberType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class add the PostTextExtension to number fields
|
* This class add the PostTextExtension to number fields
|
||||||
*
|
*
|
||||||
@ -28,7 +30,7 @@ class PostTextNumberExtension extends PostTextExtension
|
|||||||
{
|
{
|
||||||
public function getExtendedType()
|
public function getExtendedType()
|
||||||
{
|
{
|
||||||
return PostTextNumberExtension::class;
|
return NumberType::class;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -50,16 +50,15 @@ services:
|
|||||||
tags:
|
tags:
|
||||||
- { name: 'chill.custom_field', type: 'number' }
|
- { name: 'chill.custom_field', type: 'number' }
|
||||||
|
|
||||||
# no more used in symfony 3.x
|
chill.form_extension.post_text_integer:
|
||||||
# chill.form_extension.post_text_integer:
|
class: Chill\CustomFieldsBundle\Form\Extension\PostTextIntegerExtension
|
||||||
# class: Chill\CustomFieldsBundle\Form\Extension\PostTextIntegerExtension
|
tags:
|
||||||
# tags:
|
- { name: form.type_extension, extended_type: Symfony\Component\Form\Extension\Core\Type\IntegerType }
|
||||||
# - { name: form.type_extension, alias: 'integer' }
|
|
||||||
|
|
||||||
# chill.form_extension.post_text_number:
|
chill.form_extension.post_text_number:
|
||||||
# class: Chill\CustomFieldsBundle\Form\Extension\PostTextNumberExtension
|
class: Chill\CustomFieldsBundle\Form\Extension\PostTextNumberExtension
|
||||||
# tags:
|
tags:
|
||||||
# - { name: form.type_extension, alias: 'number' }
|
- { name: form.type_extension, extended_type: Symfony\Component\Form\Extension\Core\Type\NumberType }
|
||||||
|
|
||||||
chill.custom_field.choice:
|
chill.custom_field.choice:
|
||||||
class: Chill\CustomFieldsBundle\CustomFields\CustomFieldChoice
|
class: Chill\CustomFieldsBundle\CustomFields\CustomFieldChoice
|
||||||
|
Loading…
x
Reference in New Issue
Block a user