From 481849b530c86367d8dfaace1a53123c17081a48 Mon Sep 17 00:00:00 2001 From: tracer Date: Tue, 15 Nov 2022 17:08:44 +0100 Subject: [PATCH] refactored from render to renderForm --- src/Controller/SecurityController.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index d9e0c0d..3ac3761 100644 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -92,8 +92,8 @@ class SecurityController extends AbstractController return $this->render(view: '@default/security/registration_finished.html.twig'); } - return $this->render(view: '@default/security/register.html.twig', parameters: [ - 'registrationForm' => $form->createView(), + return $this->renderForm(view: '@default/security/register.html.twig', parameters: [ + 'registrationForm' => $form, ]); } @@ -142,8 +142,8 @@ class SecurityController extends AbstractController ); } - return $this->render(view: '@default/security/forgot_password.html.twig', parameters: [ - 'requestForm' => $form->createView(), + return $this->renderForm(view: '@default/security/forgot_password.html.twig', parameters: [ + 'requestForm' => $form, ]); } @@ -220,8 +220,8 @@ class SecurityController extends AbstractController return $this->redirectToRoute(route: 'app_main'); } - return $this->render(view: '@default/security/reset_password.html.twig', parameters: [ - 'resetForm' => $form->createView(), + return $this->renderForm(view: '@default/security/reset_password.html.twig', parameters: [ + 'resetForm' => $form, ]); }