src/Application/Front/Controller/LegalMentionController.php line 24

  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Application\Front\Controller;
  4. use App\Application\Front\Manager\PostTagManager;
  5. use App\Infrastructure\Client\Mailer\MailerManager;
  6. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  7. use Symfony\Component\HttpFoundation\RedirectResponse;
  8. use Symfony\Component\HttpFoundation\Request;
  9. use Symfony\Component\HttpFoundation\Response;
  10. use Symfony\Component\Routing\Annotation\Route;
  11. class LegalMentionController extends AbstractController
  12. {
  13.     public function __construct(
  14.         protected readonly MailerManager $mailerManager,)
  15.     {
  16.     }
  17.     #[Route('/mentions_legales'name'legal_mentions')]
  18.     public function index(Request $request): Response
  19.     {
  20.         return $this->render('frontend/legal_mention/legal_mention.html.twig')->setSharedMaxAge(3600);
  21.     }
  22. }