src/Controller/RealisationController.php line 13

Open in your IDE?
  1. <?php
  2. namespace  App\Controller;
  3. use App\Repository\RealisationRepository;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. class RealisationController extends AbstractController
  7. {
  8.     #[Route('realisations'name:"realisations")]
  9.     public function index(RealisationRepository $realisationRepository)
  10.     {
  11.         $realisations $realisationRepository->findAll();
  12.         // if (extension_loaded('gd')) {
  13.         //     dump('cest bon');
  14.         // } else {
  15.         //     dump('cest pas bon');
  16.         // }
  17.         // dump(gd_info());
  18.         // die();
  19.         return $this->render('pages/realisation.html.twig', [
  20.             'realisations' => $realisations
  21.         ]);
  22.     }
  23. }