<?php
namespace App\Controller;
use App\Controller\AppBaseController;
use Doctrine\DBAL\Driver\Connection;
use App\Entity\{Eodrive\SiteClient\Page, Message, EtatContact, Contact, User, Interlocuteur};
use App\Form\{ContactEtatType, ContactAgenceType};
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\Security\Core\Exception\CustomUserMessageAuthenticationException;
use Symfony\Component\Translation\Translator;
use Symfony\Component\Translation\TranslatorInterface;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use App\Entity\Eodrive\EodriveClient;
class AdminController extends AppBaseController
{
/**
* @Route("/", name="home")
*/
public function homeRender(){
//$adherents = $this->getRepository("App:Eodrive\EodriveClient")->findBy(['isActive' => true]);
$adherents = $this->getRepository("App:Eodrive\GaragePoints")->findAll();
$home = true;
return $this->render("home.html.twig", ['adherents' => $adherents, "home" => $home]);
}
/**
* @Route("/qui-sommes-nous", name="about")
*/
public function aboutUs(){
$adherents = $this->getRepository("App:Eodrive\GaragePoints")->findAll();
return $this->render("about.html.twig", ['adherents' => $adherents]);
}
/**
* @Route("/financement", name="financement")
*/
public function financement(){
$adherents = $this->getRepository("App:Eodrive\GaragePoints")->findAll();
return $this->render("financement.html.twig", ['adherents' => $adherents]);
}
/**
* @Route("/garantie-panne-mecanique", name="garantie")
*/
public function garantie(){
$adherents = $this->getRepository("App:Eodrive\GaragePoints")->findAll();
return $this->render("garantie.html.twig", ['adherents' => $adherents]);
}
/**
* @Route("/mentions-legales", name="condition_general_utilisation")
*/
public function mentionLegales(){
$adherents = $this->getRepository("App:Eodrive\GaragePoints")->findAll();
return $this->render("mention_legal.html.twig", ['adherents' => $adherents]);
}
/**
* @Route("/reprise", name="reprise")
*/
public function reprise(){
$adherents = $this->getRepository("App:Eodrive\GaragePoints")->findAll();
return $this->render("reprise.html.twig", ['adherents' => $adherents]);
}
}