<?php
namespace App\Controller;
use App\Repository\OffreEmploiRepository;
use App\Repository\OffreImmobiliereRepository;
use App\Repository\RepriseActiviteRepository;
use App\Repository\TemoignageRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
#[Route('/', name: 'app_')]
class BaseController extends AbstractController
{
#[Route('/', name: 'index')]
public function index(OffreEmploiRepository $offreEmploiRepository, RepriseActiviteRepository $repriseActiviteRepository, OffreImmobiliereRepository $offreImmobiliereRepository, TemoignageRepository $temoignageRepository): Response
{
$offreEmplois = $offreEmploiRepository->findAll('DESC');
$repriseActivites = $repriseActiviteRepository->findAll('DESC');
$offreImmobilieres = $offreImmobiliereRepository->findAll('DESC');
$temoignages = $temoignageRepository->findAll('DESC');
return $this->render('pages/index.html.twig', [
'offreEmplois' => $offreEmplois,
'repriseActivites' =>$repriseActivites,
'offreImmobilieres' =>$offreImmobilieres,
'temoignages' =>$temoignages,
]);
}
#[Route('/decouvrir-le-patrimoine-du-migennois', name: 'patrimoine')]
public function patrimoine(): Response
{
return $this->render('pages/patrimoine.html.twig');
}
#[Route('/le-migennois', name: 'migennois')]
public function migennois(): Response
{
return $this->render('pages/migennois.html.twig');
}
#[Route('/s-installer', name: 'installation')]
public function installation(): Response
{
return $this->render('pages/installation.html.twig', [
]);
}
#[Route('/entreprendre', name: 'entreprendre')]
public function entreprendre(): Response
{
return $this->render('pages/entreprendre.html.twig', [
]);
}
#[Route('/mentions-legales', name: 'mentions')]
public function mentionsLegales(): Response
{
return $this->render('pages/mentionsLegales.html.twig', [
]);
}
#[Route('/politique-de-confidentialite', name: 'rgpd')]
public function rgpd(): Response
{
return $this->render('pages/rgpd.html.twig', [
]);
}
}