resetPasswordHelper = $resetPasswordHelper; $this->entityManager = $entityManager; } /** * Display & process form to request a password reset. * * @Route("", name="app_forgot_password_request") */ public function request(Request $request, MailerInterface $mailer): Response { $form = $this->createForm(::class); $form->handleRequest($request); if ($form->isSubmitted() && $form->isValid()) { return $this->processSendingPasswordResetEmail( $form->get('')->getData(), $mailer ); } return $this->render('reset_password/request.html.twig', [ 'requestForm' => $form->createView(), ]); } /** * Confirmation page after a user has requested a password reset. * * @Route("/check-email", name="app_check_email") */ public function checkEmail(): Response { // Generate a fake token if the user does not exist or someone hit this page directly. // This prevents exposing whether or not a user was found with the given email address or not if (null === ($resetToken = $this->getTokenObjectFromSession())) { $resetToken = $this->resetPasswordHelper->generateFakeResetToken(); } return $this->render('reset_password/check_email.html.twig', [ 'resetToken' => $resetToken, ]); } /** * Validates and process the reset URL that the user clicked in their email. * * @Route("/reset/{token}", name="app_reset_password") */ public function reset(Request $request,
Fatal error: Uncaught Error: Call to a member function getShortName() on null in /home/benjamincb/demos/acdg/vendor/symfony/maker-bundle/src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php:88 Stack trace: #0 {main} thrown in /home/benjamincb/demos/acdg/vendor/symfony/maker-bundle/src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php on line 88