src/Action/MentionsAction.php line 12

Open in your IDE?
  1. <?php
  2. declare(strict_types 1);
  3. namespace App\Action;
  4. use App\Domain\Repository\Interfaces\TextRepositoryInterface;
  5. use App\Responder\RedirectResponder;
  6. use App\Responder\TemplateResponder;
  7. use Symfony\Component\Routing\Annotation\Route;
  8. class MentionsAction extends AbstractAction
  9. {
  10.     public function __construct(
  11.         TemplateResponder $templateResponder,
  12.         RedirectResponder $redirectResponder
  13.     )
  14.     {
  15.         $this->templateResponder $templateResponder;
  16.         $this->redirectResponder $redirectResponder;
  17.     }
  18.     /**
  19.      * @Route("/mentions-legales", name="mentions")
  20.      */
  21.     public function __invoke()
  22.     {
  23.         return $this->templateResponder->__invoke('mentions_legales.html.twig');
  24.     }
  25. }