Fix TokenStorage::reset not called in stateless firewall
This commit is contained in:
parent
33146778b5
commit
616c30f185
@ -43,6 +43,7 @@ class RegisterTokenUsageTrackingPass implements CompilerPassInterface
|
||||
|
||||
if (!$container->has('session')) {
|
||||
$container->setAlias('security.token_storage', 'security.untracked_token_storage')->setPublic(true);
|
||||
$container->getDefinition('security.untracked_token_storage')->addTag('kernel.reset', ['method' => 'reset']);
|
||||
} elseif ($container->hasDefinition('security.context_listener')) {
|
||||
$container->getDefinition('security.context_listener')
|
||||
->setArgument(6, [new Reference('security.token_storage'), 'enableUsageTracking']);
|
||||
|
Reference in New Issue
Block a user