src/Security/Controller/ForgottenPasswordController.php line 13

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Security\Controller;
  4. use App\Security\Form\DataTransferObject\ForgottenPassword;
  5. use App\Security\Form\Type\ForgottenPasswordType;
  6. use App\Security\UseCase\SendForgottenPasswordToken\SendForgottenPasswordTokenInterface;
  7. use App\Shared\Controller\AbstractController;
  8. use Symfony\Component\HttpFoundation\Response;
  9. final class ForgottenPasswordController extends AbstractController
  10. {
  11.     public function __invoke(SendForgottenPasswordTokenInterface $sendForgottenPasswordToken): Response
  12.     {
  13.         return $this->handleForm(
  14.             ForgottenPasswordType::class,
  15.             new ForgottenPassword(),
  16.             [],
  17.             $sendForgottenPasswordToken,
  18.             '@security/forgotten_password.html.twig',
  19.             [],
  20.             'security_login'
  21.         );
  22.     }
  23. }