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