Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
bug #656 don't fail when token storage is an alias (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 5.5.x-dev branch.

Discussion
----------

don't fail when token storage is an alias

fixes #653

Commits
-------

9bb0446 don't fail when token storage is an alias
  • Loading branch information
fabpot committed Dec 27, 2019
2 parents 92acfcc + 9bb0446 commit 98f0807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DependencyInjection/Compiler/OptimizerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class OptimizerPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
{
if (!$container->hasDefinition('security.token_storage')) {
if (!$container->has('security.token_storage')) {
$container->removeDefinition('sensio_framework_extra.security.listener');
}

Expand Down

0 comments on commit 98f0807

Please sign in to comment.