mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
fix deprecations: replace last fqcn in add methods for forms
This commit is contained in:
@@ -23,6 +23,9 @@ use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\DateType;
|
||||
|
||||
use Chill\MainBundle\Form\Type\PostalCodeType;
|
||||
|
||||
/**
|
||||
* A type to create/update Address entity
|
||||
@@ -46,9 +49,9 @@ class AddressType extends AbstractType
|
||||
'placeholder' => 'Choose a postal code',
|
||||
'required' => true
|
||||
))
|
||||
->add('validFrom', 'date', array(
|
||||
'required' => true,
|
||||
'widget' => 'single_text',
|
||||
->add('validFrom', DateType::class, array(
|
||||
'required' => true,
|
||||
'widget' => 'single_text',
|
||||
'format' => 'dd-MM-yyyy'
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user