mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 22:04:23 +00:00
fix deprecations: use fqcn for 'password' and 'repeated'
This commit is contained in:
parent
51a1b23e0d
commit
f8a61bd178
@ -8,6 +8,8 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
use Symfony\Component\Validator\Constraints\Length;
|
||||
use Symfony\Component\Validator\Constraints\NotBlank;
|
||||
use Symfony\Component\Validator\Constraints\Regex;
|
||||
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
|
||||
|
||||
class UserPasswordType extends AbstractType
|
||||
{
|
||||
@ -18,8 +20,8 @@ class UserPasswordType extends AbstractType
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
$builder
|
||||
->add('password', 'repeated', array(
|
||||
'type' => 'password',
|
||||
->add('password', RepeatedType::class, array(
|
||||
'type' => PasswordType::class,
|
||||
'required' => false,
|
||||
'options' => array(),
|
||||
'first_options' => array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user