Skip to content

Commit

Permalink
Merge pull request #3 from bocharsky-bw/tweak-listener-priority
Browse files Browse the repository at this point in the history
Change priorities for listeners
  • Loading branch information
bocharsky-bw committed Jun 4, 2022
2 parents 26956a8 + 708c72e commit 190d382
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/EventSubscriber/AcceptLanguageSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
];
}

Expand Down
2 changes: 1 addition & 1 deletion src/EventSubscriber/CountrySubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
];
}

Expand Down

0 comments on commit 190d382

Please sign in to comment.