From 3f7736d032ce4199f0026c7bb17c5b34c1985731 Mon Sep 17 00:00:00 2001 From: vgreb Date: Sun, 10 May 2026 23:50:53 +0200 Subject: [PATCH] suppression reliquat de la gestion des "flash" message legacy --- .../AppBundle/Controller/Admin/Event/ListAction.php | 8 -------- .../Controller/Admin/Event/Ticket/IndexAction.php | 10 ---------- 2 files changed, 18 deletions(-) diff --git a/sources/AppBundle/Controller/Admin/Event/ListAction.php b/sources/AppBundle/Controller/Admin/Event/ListAction.php index 722e53f2d..f5ee7536c 100644 --- a/sources/AppBundle/Controller/Admin/Event/ListAction.php +++ b/sources/AppBundle/Controller/Admin/Event/ListAction.php @@ -14,14 +14,6 @@ public function __construct(private readonly EventRepository $eventRepository) { public function __invoke(): Response { - //TODO : à supprimer quand les actions via le formulaire auront été migée - if (isset($_SESSION['flash']['message'])) { - $this->addFlash('notice', $_SESSION['flash']['message']); - } - if (isset($_SESSION['flash']['erreur'])) { - $this->addFlash('error', $_SESSION['flash']['erreur']); - } - unset($_SESSION['flash']); $list = $this->eventRepository->getList(); return $this->render('admin/event/list.html.twig', [ 'events' => $list, diff --git a/sources/AppBundle/Controller/Admin/Event/Ticket/IndexAction.php b/sources/AppBundle/Controller/Admin/Event/Ticket/IndexAction.php index a7b864a01..e61dab893 100644 --- a/sources/AppBundle/Controller/Admin/Event/Ticket/IndexAction.php +++ b/sources/AppBundle/Controller/Admin/Event/Ticket/IndexAction.php @@ -31,16 +31,6 @@ public function __construct( public function __invoke(Request $request, AdminEventSelection $eventSelection): Response { - //TODO : à supprimer quand les actions via le formulaire auront été migrées - if (isset($_SESSION['flash']['message'])) { - $this->addFlash('notice', $_SESSION['flash']['message']); - } - if (isset($_SESSION['flash']['erreur'])) { - $this->addFlash('error', $_SESSION['flash']['erreur']); - } - unset($_SESSION['flash']); - - $event = $eventSelection->event; $data = [ 'id' => $event->getId(),