fix deprecations: use fqcn for 'password' and 'repeated'

This commit is contained in:
nobohan 2018-04-04 11:35:53 +02:00
parent 51a1b23e0d
commit f8a61bd178

View File

@ -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(