From 9dc13d5149bb84d007bd0fc152e446dc35bfafa3 Mon Sep 17 00:00:00 2001 From: bocharsky-bw Date: Sat, 4 Jun 2022 14:29:20 +0300 Subject: [PATCH] Change priorities for listeners --- src/EventSubscriber/AcceptLanguageSubscriber.php | 2 +- src/EventSubscriber/CountrySubscriber.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EventSubscriber/AcceptLanguageSubscriber.php b/src/EventSubscriber/AcceptLanguageSubscriber.php index 3c173a6..451b13e 100644 --- a/src/EventSubscriber/AcceptLanguageSubscriber.php +++ b/src/EventSubscriber/AcceptLanguageSubscriber.php @@ -60,7 +60,7 @@ public static function getSubscribedEvents(): array { return [ // priority should be lower than for CountrySubscriber - RequestEvent::class => ['onRequestEvent', 13], + RequestEvent::class => ['onRequestEvent', 11], ]; } diff --git a/src/EventSubscriber/CountrySubscriber.php b/src/EventSubscriber/CountrySubscriber.php index f97c2dc..3514379 100644 --- a/src/EventSubscriber/CountrySubscriber.php +++ b/src/EventSubscriber/CountrySubscriber.php @@ -57,7 +57,7 @@ public static function getSubscribedEvents(): array { return [ // priority should be higher than for AcceptLanguageSubscriber - RequestEvent::class => ['onRequestEvent', 14], + RequestEvent::class => ['onRequestEvent', 12], ]; }