mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 10:03: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'
|
||||
)
|
||||
)
|
||||
|
@@ -21,7 +21,7 @@ class UserType extends AbstractType
|
||||
->add('username')
|
||||
;
|
||||
if ($options['is_creation']) {
|
||||
$builder->add('plainPassword', new UserPasswordType(), array(
|
||||
$builder->add('plainPassword', UserPasswordType::class, array(
|
||||
'mapped' => false
|
||||
));
|
||||
|
||||
|
Reference in New Issue
Block a user