3 namespace Wallabag\CoreBundle\Form\Type
;
5 use Symfony\Component\Form\AbstractType
;
6 use Symfony\Component\Form\Extension\Core\Type\CheckboxType
;
7 use Symfony\Component\Form\Extension\Core\Type\EmailType
;
8 use Symfony\Component\Form\Extension\Core\Type\SubmitType
;
9 use Symfony\Component\Form\Extension\Core\Type\TextType
;
10 use Symfony\Component\Form\FormBuilderInterface
;
11 use Symfony\Component\OptionsResolver\OptionsResolver
;
13 class UserInformationType
extends AbstractType
15 public function buildForm(FormBuilderInterface
$builder, array $options)
18 ->add('name', TextType
::class)
19 ->add('email', EmailType
::class)
20 ->add('twoFactorAuthentication', CheckboxType
::class, array('required' => false))
21 ->add('save', SubmitType
::class)
23 ->remove('plainPassword')
27 public function getParent()
29 return 'fos_user_registration';
32 public function configureOptions(OptionsResolver
$resolver)
34 $resolver->setDefaults(array(
35 'data_class' => 'Wallabag\UserBundle\Entity\User',
39 public function getBlockPrefix()