Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.humitest.fr
/
htdocs
/
src
/
Controller
/
front
/
/srv/data/web/vhosts/www.humitest.fr/htdocs/src/Controller/front/ModalController.php
<?php namespace App\Controller\front; use App\Repository\ModalRepository; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; /** * @Route("/modal") */ class ModalController extends AbstractController { /** * @Route("/", name="modal", methods={"GET"}) */ public function displayModal(ModalRepository $modalRepository): Response { $modal = $modalRepository->findAll(); return $this->render("front/blocks/modal-close.html.twig", [ 'modal' => $modal[0], ]); } }