Skip to content

Commit

Permalink
Merge pull request #2747 from acrobat/fix-admin-locale-priority
Browse files Browse the repository at this point in the history
[AdminBundle] Change admin locale listener priority to after firewall listener
  • Loading branch information
acrobat committed Sep 15, 2020
2 parents 0d9c2d7 + ff7631f commit 6f21863
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -101,9 +101,9 @@ private function isAdminToken($providerKey, TokenInterface $token = null)
*/
public static function getSubscribedEvents()
{
return array(
// Must be registered before the default Locale listener
KernelEvents::REQUEST => array(array('onKernelRequest', 17)),
);
return [
// The event subscriber must be registered after the Symfony FirewallListener so the user token is populated.
KernelEvents::REQUEST => [['onKernelRequest', 5]],
];
}
}

0 comments on commit 6f21863

Please sign in to comment.