diff --git a/src/Form/RegistrationFormType.php b/src/Form/RegistrationFormType.php index ac201e0..1566834 100644 --- a/src/Form/RegistrationFormType.php +++ b/src/Form/RegistrationFormType.php @@ -13,8 +13,15 @@ use Symfony\Component\Validator\Constraints\IsTrue; use Symfony\Component\Validator\Constraints\Length; use Symfony\Component\Validator\Constraints\NotBlank; +/** + * Class RegistrationFormType + * @package App\Form + */ class RegistrationFormType extends AbstractType { + /** + * {@inheritdoc} + */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder @@ -29,7 +36,7 @@ class RegistrationFormType extends AbstractType ]) ->add('plainPassword', PasswordType::class, [ // instead of being set onto the object directly, - // this is read and encoded in the controller + // this is read and hashed in the controller 'mapped' => false, 'attr' => ['autocomplete' => 'new-password'], 'constraints' => [ @@ -49,6 +56,9 @@ class RegistrationFormType extends AbstractType ->add('email', EmailType::class); } + /** + * {@inheritdoc} + */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([