src/Controller/AdminController.php line 29

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Controller\AppBaseController;
  4. use Doctrine\DBAL\Driver\Connection;
  5. use App\Entity\{Eodrive\SiteClient\PageMessageEtatContactContactUserInterlocuteur};
  6. use App\Form\{ContactEtatTypeContactAgenceType};
  7. use Symfony\Component\HttpFoundation\Request;
  8. use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  9. use Symfony\Component\HttpFoundation\JsonResponse;
  10. use Symfony\Component\HttpFoundation\Session\SessionInterface;
  11. use Symfony\Component\Security\Core\Exception\CustomUserMessageAuthenticationException;
  12. use Symfony\Component\Translation\Translator;
  13. use Symfony\Component\Translation\TranslatorInterface;
  14. use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
  15. use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
  16. use App\Entity\Eodrive\EodriveClient;
  17. class AdminController extends AppBaseController
  18. {
  19.     /**
  20.      * @Route("/", name="home")
  21.      */
  22.     public function homeRender(){
  23.         //$adherents = $this->getRepository("App:Eodrive\EodriveClient")->findBy(['isActive' => true]);
  24.         $adherents $this->getRepository("App:Eodrive\GaragePoints")->findAll();
  25.         $home true;
  26.         return $this->render("home.html.twig", ['adherents' => $adherents"home" => $home]);
  27.     }
  28.     
  29.     /**
  30.      * @Route("/qui-sommes-nous", name="about")
  31.      */
  32.     public function aboutUs(){
  33.         $adherents $this->getRepository("App:Eodrive\GaragePoints")->findAll();
  34.         return $this->render("about.html.twig", ['adherents' => $adherents]);
  35.     }
  36.     /**
  37.      * @Route("/financement", name="financement")
  38.      */
  39.     public function financement(){
  40.         $adherents $this->getRepository("App:Eodrive\GaragePoints")->findAll();
  41.         return $this->render("financement.html.twig", ['adherents' => $adherents]);
  42.     }
  43.     /**
  44.      * @Route("/garantie-panne-mecanique", name="garantie")
  45.      */
  46.     public function garantie(){
  47.         $adherents $this->getRepository("App:Eodrive\GaragePoints")->findAll();
  48.         return $this->render("garantie.html.twig", ['adherents' => $adherents]);
  49.     }
  50.     /**
  51.      * @Route("/mentions-legales", name="condition_general_utilisation")
  52.      */
  53.     public function mentionLegales(){
  54.         $adherents $this->getRepository("App:Eodrive\GaragePoints")->findAll();
  55.         return $this->render("mention_legal.html.twig", ['adherents' => $adherents]);
  56.     }
  57.     /**
  58.      * @Route("/reprise", name="reprise")
  59.      */
  60.     public function reprise(){
  61.         $adherents $this->getRepository("App:Eodrive\GaragePoints")->findAll();
  62.         return $this->render("reprise.html.twig", ['adherents' => $adherents]);
  63.     }
  64. }