<?php
declare(strict_types = 1);
namespace App\Action;
use App\Domain\Repository\Interfaces\TextRepositoryInterface;
use App\Responder\RedirectResponder;
use App\Responder\TemplateResponder;
use Symfony\Component\Routing\Annotation\Route;
class MentionsAction extends AbstractAction
{
public function __construct(
TemplateResponder $templateResponder,
RedirectResponder $redirectResponder
)
{
$this->templateResponder = $templateResponder;
$this->redirectResponder = $redirectResponder;
}
/**
* @Route("/mentions-legales", name="mentions")
*/
public function __invoke()
{
return $this->templateResponder->__invoke('mentions_legales.html.twig');
}
}