<?php
namespace App\Controller;
use App\Repository\RealisationRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
class RealisationController extends AbstractController
{
#[Route('realisations', name:"realisations")]
public function index(RealisationRepository $realisationRepository)
{
$realisations = $realisationRepository->findAll();
// if (extension_loaded('gd')) {
// dump('cest bon');
// } else {
// dump('cest pas bon');
// }
// dump(gd_info());
// die();
return $this->render('pages/realisation.html.twig', [
'realisations' => $realisations
]);
}
}