src/Controller/StatiqueController.php line 42

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * Copyright (C) Office National de Publication et de Communication - All Rights Reserved
  5.  *
  6.  * Unauthorized copying of this file, via any medium is strictly prohibited by law
  7.  * This file is proprietary and confidential
  8.  */
  9. namespace App\Controller;
  10. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  11. use Symfony\Component\HttpFoundation\Response;
  12. use Symfony\Component\Routing\Annotation\Route;
  13. final class StatiqueController extends AbstractController
  14. {
  15.     /**
  16.      * @Route("/mentions-legales", name="mentions-legales", methods={"GET"})
  17.      */
  18.     public function mentionsLegales(): Response
  19.     {
  20.         return $this->render('statique/mentions-legales.html.twig');
  21.     }
  22.     /**
  23.      * @Route("/contact", name="contact", methods={"GET"})
  24.      */
  25.     public function contact(): Response
  26.     {
  27.         return $this->redirect($this->generateUrl('homepage'), 301);
  28.         // return $this->render('statique/contact.html.twig');
  29.     }
  30.     /**
  31.      * @Route("/qui-sommes-nous", name="qui-sommes-nous", methods={"GET"})
  32.      */
  33.     public function description(): Response
  34.     {
  35.         return $this->render('statique/qui-sommes-nous.html.twig');
  36.     }
  37.     /**
  38.     * @Route("/guide-internat/guide-internat.html", name="guide-internat", methods={"GET"})
  39.      */
  40.     public function guideInternat(): Response
  41.     {
  42.         return $this->render('statique/guide-internat.html.twig');
  43.     }
  44.     /**
  45.     * @Route("/marketing/commercial", name="marketing-commercial", methods={"GET"})
  46.      */
  47.     public function marketingCommercial(): Response
  48.     {
  49.         return $this->render('statique/marketing-commercial.html.twig');
  50.     }
  51.     /**
  52.     * @Route("/marketing/sitesweb", name="marketing-sitesweb", methods={"GET"})
  53.      */
  54.     public function marketingSitesweb(): Response
  55.     {
  56.         return $this->render('statique/marketing-sitesweb.html.twig');
  57.     }
  58. }