<?php
// src/Controller/homeController.php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
class VisitorController extends AbstractController
{
/**
* @Route({
* "fr": "{_locale}/accueil",
* "en": "{_locale}/home"
* }, name="home",
* requirements={"_locale"="fr|en|pt"})
*/
public function home()
{
return $this->render('visitor/home.html.twig');
}
/**
* @Route({
* "fr": "{_locale}/parrainage",
* "en": "{_locale}/godfather"
* }, name="godfather",
* requirements={"_locale"="fr|en|pt"})
*/
public function godfather()
{
return $this->render('visitor/godfather.html.twig');
}
/**
* @Route({
* "en": "{_locale}/donation",
* "fr": "{_locale}/don",
* },
* name="donation",
* requirements={"_locale"="fr|en|pt"})
*/
public function donation()
{
return $this->render('visitor/donation.html.twig');
}
/**
* @Route({
* "en": "{_locale}/contact",
* "fr": "{_locale}/contact"
* }, name="contact",
* requirements={"_locale"="fr|en|pt"})
*/
public function contact()
{
return $this->render('visitor/contact.html.twig');
}
/**
* @Route({
* "en": "{_locale}/accommodation",
* "fr": "{_locale}/hebergement"
* },
* name="accommodation",
* requirements={"_locale"="fr|en|pt"}
* )
*/
public function accommodation()
{
return $this->render('visitor/accommodation.html.twig');
}
}