bundle/Controller/UserController.php
protected function createActivationForm(): FormInterface
    {
        return $this->createFormBuilder(null, ['translation_domain' => 'ngsite_user'])
            ->add(
                'email',
                EmailType::class,
                [
                    'constraints' => [
                        new Constraints\Email(),
                        new Constraints\NotBlank(),
                    ],
                ]
            )->getForm();
    }
protected function createActivationForm(): FormInterface
    {
        return $this->createFormBuilder(null, ['translation_domain' => 'ngsite_user'])
            ->add(
                'email',
                EmailType::class,
                [
                    'constraints' => [
                        new Constraints\Email(),
                        new Constraints\NotBlank(),
                    ],
                ]
            )->getForm();
    }
protected function createActivationForm ( ) : FormInterface { return $ this -> createFormBuilder ( null , [ 'translation_domain' => 'ngsite_user' ] ) -> add ( 'email' , EmailType :: class , [ 'constraints' => [ new Constraints \ Email ( ) , new Constraints \ NotBlank ( ) , ] , ] ) -> getForm ( ) ; }
Creates activation form.
Creates activation form .