X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FForm%2FType%2FUserInformationType.php;h=07c9994968cee3a8c0122f21b02b0dedc0088831;hb=c5ad143e750254adb185ab6956dc87d2585ae54d;hp=799ea39e6871e478f39fa2ed3c2b6328907f103f;hpb=77b9db87b84e20a6042444e3b18665bc66d4f1f2;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php index 799ea39e..07c99949 100644 --- a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php +++ b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php @@ -15,19 +15,19 @@ class UserInformationType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('name', TextType::class, array( + ->add('name', TextType::class, [ 'label' => 'config.form_user.name_label', - )) - ->add('email', EmailType::class, array( + ]) + ->add('email', EmailType::class, [ 'label' => 'config.form_user.email_label', - )) - ->add('twoFactorAuthentication', CheckboxType::class, array( + ]) + ->add('twoFactorAuthentication', CheckboxType::class, [ 'required' => false, 'label' => 'config.form_user.twoFactorAuthentication_label', - )) - ->add('save', SubmitType::class, array( + ]) + ->add('save', SubmitType::class, [ 'label' => 'config.form.save', - )) + ]) ->remove('username') ->remove('plainPassword') ; @@ -40,9 +40,9 @@ class UserInformationType extends AbstractType public function configureOptions(OptionsResolver $resolver) { - $resolver->setDefaults(array( + $resolver->setDefaults([ 'data_class' => 'Wallabag\UserBundle\Entity\User', - )); + ]); } public function getBlockPrefix()