Warning: Undefined variable $namespace in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 3
;
use
Warning: Undefined variable $user_full_class_name in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 5
;
use
Warning: Undefined variable $form_full_class_name in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 6
;
Warning: Undefined variable $will_verify_email in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 7
Warning: Undefined variable $authenticator_full_class_name in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 10
Warning: Undefined variable $will_verify_email in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 13
use Symfony\Bundle\FrameworkBundle\Controller\
Warning: Undefined variable $parent_class_name in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 19
;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
Warning: Undefined variable $will_verify_email in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 22
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface;
Warning: Undefined variable $authenticator_full_class_name in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 27
Warning: Undefined variable $will_verify_email in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 30
class
Warning: Undefined variable $class_name in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 34
extends
Warning: Undefined variable $parent_class_name in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 34
{
Warning: Undefined variable $will_verify_email in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 36
Warning: Undefined variable $use_attributes in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 45
/**
* @Route("
Warning: Undefined variable $route_path in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 49
", name="
Warning: Undefined variable $route_name in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 49
")
*/
public function register(Request $request, UserPasswordEncoderInterface $passwordEncoder
Warning: Undefined variable $authenticator_full_class_name in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 52
): Response
{
$user = new
Warning: Undefined variable $user_class_name in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 54
();
$form = $this->createForm(
Warning: Undefined variable $form_class_name in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 55
::class, $user);
$form->handleRequest($request);
if ($form->isSubmitted() && $form->isValid()) {
// encode the plain password
$user->set
Warning: Undefined variable $password_field in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 60
Deprecated: ucfirst(): Passing null to parameter #1 ($string) of type string is deprecated in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 60
(
$passwordEncoder->encodePassword(
$user,
$form->get('plainPassword')->getData()
)
);
$entityManager = $this->getDoctrine()->getManager();
$entityManager->persist($user);
$entityManager->flush();
Warning: Undefined variable $will_verify_email in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 70
// do anything else you need here, like send an email
Warning: Undefined variable $authenticator_full_class_name in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 83
return $this->redirectToRoute('
Warning: Undefined variable $redirect_route_name in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 91
');
}
return $this->render('registration/register.html.twig', [
'registrationForm' => $form->createView(),
]);
}
Warning: Undefined variable $will_verify_email in /home/microfrlnn/vendor/symfony/maker-bundle/src/Resources/skeleton/registration/RegistrationController.tpl.php on line 99
}