<?php
namespace App\Controller;
use App\Repository\RealisationRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
class HomeController extends AbstractController
{
#[Route('/', name:"index")]
public function index(RealisationRepository $realisationRepository)
{
$realisations = $realisationRepository->findAll();
return $this->render('pages/index.html.twig', [
'realisations' => $realisations
]);
}
}