<?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 CguAction extends AbstractAction
{
public function __construct(
TemplateResponder $templateResponder,
RedirectResponder $redirectResponder
)
{
$this->templateResponder = $templateResponder;
$this->redirectResponder = $redirectResponder;
}
/**
* @Route("/cgu", name="cgu")
*/
public function __invoke()
{
return $this->templateResponder->__invoke('cgu.html.twig');
}
}