Advertisement
Guest User

Untitled

a guest
Aug 18th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. public function buildForm(FormBuilderInterface $builder, array $options)
  2. {
  3. $builder
  4. ->add('fullName', TextType::class,)
  5. ->add('email', TextType::class,)
  6. ->add('password', RepeatedType::class,
  7. [
  8. 'type' => PasswordType::class,
  9. 'invalid_message' => 'The ( Passwords ) do not match.',
  10. 'first_options' => array('label' => 'Password'),
  11. 'second_options' => array('label' => 'Confirm Password')
  12. ])
  13. ->add('image', FileType::class,
  14. [
  15. 'data_class' => null
  16. ]);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement