From 912f7d32118c268e207794db0950f3e9c158256a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 13 Dec 2023 16:06:44 +0100 Subject: [PATCH] remove some deprecations --- .../PersistNotificationOnTerminateEventSubscriber.php | 2 +- .../ChillMainBundle/Resources/views/Menu/user.html.twig | 4 ++-- .../PersistNotificationOnTerminateEventSubscriberTest.php | 2 +- .../Workflow/WorkflowEventSubscriberTest.php | 0 .../Tests/Controller/PersonControllerUpdateTest.php | 2 +- .../Tests/Controller/RelationshipApiControllerTest.php | 6 +++--- ...rationAPWorkPersonAssociatedOnAccompanyingPeriodTest.php | 4 +++- 7 files changed, 11 insertions(+), 9 deletions(-) delete mode 100644 src/Bundle/ChillPersonBundle/Tests/AccompanyingPeriod/Workflow/WorkflowEventSubscriberTest.php diff --git a/src/Bundle/ChillMainBundle/Notification/EventListener/PersistNotificationOnTerminateEventSubscriber.php b/src/Bundle/ChillMainBundle/Notification/EventListener/PersistNotificationOnTerminateEventSubscriber.php index 74c784b4b..3268fee05 100644 --- a/src/Bundle/ChillMainBundle/Notification/EventListener/PersistNotificationOnTerminateEventSubscriber.php +++ b/src/Bundle/ChillMainBundle/Notification/EventListener/PersistNotificationOnTerminateEventSubscriber.php @@ -31,7 +31,7 @@ class PersistNotificationOnTerminateEventSubscriber implements EventSubscriberIn public function onKernelTerminate(TerminateEvent $event): void { - if ($event->isMasterRequest()) { + if ($event->isMainRequest()) { $this->persistNotifications(); } } diff --git a/src/Bundle/ChillMainBundle/Resources/views/Menu/user.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Menu/user.html.twig index 00a50c6e3..52be8b50f 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Menu/user.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Menu/user.html.twig @@ -31,7 +31,7 @@ {{ render(controller('Chill\\MainBundle\\Controller\\UIController::showNotificationUserCounterAction')) }} - {% if is_granted('ROLE_PREVIOUS_ADMIN') %} + {% if is_granted('IS_IMPERSONATOR') %} {% endif %} @@ -39,7 +39,7 @@