- public function buildForm(FormBuilderInterface $builder, array $options) {
- return $builder->add('mail', EmailType::class, array('attr' => array('placeholder' => 'Your mail address'), 'constraints' => array(new NotBlank(array('message' => 'Please provide your mail')), new Email(array('message' => 'Your mail doesn\'t seems to be valid')))))
- ->add('submit', SubmitType::class, array('label' => 'Send', 'attr' => array('class' => 'submit')));
- }
+ public function configureOptions(OptionsResolver $resolver): void {
+ //Call parent configure option
+ parent::configureOptions($resolver);