<?php
declare(strict_types=1);
namespace App\Security\Controller;
use App\Security\Form\DataTransferObject\ForgottenPassword;
use App\Security\Form\Type\ForgottenPasswordType;
use App\Security\UseCase\SendForgottenPasswordToken\SendForgottenPasswordTokenInterface;
use App\Shared\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
final class ForgottenPasswordController extends AbstractController
{
public function __invoke(SendForgottenPasswordTokenInterface $sendForgottenPasswordToken): Response
{
return $this->handleForm(
ForgottenPasswordType::class,
new ForgottenPassword(),
[],
$sendForgottenPasswordToken,
'@security/forgotten_password.html.twig',
[],
'security_login'
);
}
}