src/Controller/VisitorController.php line 21

Open in your IDE?
  1. <?php
  2. // src/Controller/homeController.php
  3. namespace App\Controller;
  4. use Symfony\Component\HttpFoundation\Request;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  8. class VisitorController extends AbstractController
  9. {
  10.     /**
  11.      *    @Route({
  12.      * "fr": "{_locale}/accueil", 
  13.      * "en": "{_locale}/home"
  14.      * }, name="home", 
  15.      * requirements={"_locale"="fr|en|pt"})
  16.      */
  17.     public function home()
  18.     {
  19.         return $this->render('visitor/home.html.twig');
  20.     }
  21.     /**
  22.      *    @Route({
  23.      * "fr": "{_locale}/parrainage", 
  24.      * "en": "{_locale}/godfather"
  25.      * }, name="godfather", 
  26.      * requirements={"_locale"="fr|en|pt"})
  27.      */
  28.     public function godfather()
  29.     {
  30.         return $this->render('visitor/godfather.html.twig');
  31.     }
  32.     
  33.     /**
  34.     * @Route({
  35.     * "en": "{_locale}/donation", 
  36.     * "fr": "{_locale}/don", 
  37.     * }, 
  38.     * name="donation", 
  39.     * requirements={"_locale"="fr|en|pt"})
  40.     */
  41.     public function donation()
  42.     {
  43.         return $this->render('visitor/donation.html.twig');
  44.     }
  45.     
  46.     /**
  47.     * @Route({
  48.     *    "en": "{_locale}/contact", 
  49.     *    "fr": "{_locale}/contact"
  50.     * }, name="contact", 
  51.     * requirements={"_locale"="fr|en|pt"})
  52.     */
  53.     public function contact()
  54.     {
  55.         return $this->render('visitor/contact.html.twig');
  56.     }
  57.     /**
  58.      * @Route({
  59.      *     "en": "{_locale}/accommodation", 
  60.      *     "fr": "{_locale}/hebergement"
  61.      *     }, 
  62.      *     name="accommodation", 
  63.      *     requirements={"_locale"="fr|en|pt"}
  64.      * )
  65.      */
  66.     public function accommodation()
  67.     {
  68.         return $this->render('visitor/accommodation.html.twig');
  69.     }
  70. }