Skip to content

Commit

Permalink
fixed the correct service existence
Browse files Browse the repository at this point in the history
  • Loading branch information
Ne-Lexa committed Jun 13, 2020
1 parent cf9e017 commit b945ab0
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,13 @@ class RegisterCsrfFeaturesPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
{
if (!$container->has('security.csrf.token_storage')) {
return;
}

$this->registerCsrfProtectionListener($container);
$this->registerLogoutHandler($container);
}

private function registerCsrfProtectionListener(ContainerBuilder $container)
{
if (!$container->has('security.authenticator.manager')) {
if (!$container->has('security.csrf.token_manager')) {
return;
}

Expand Down

0 comments on commit b945ab0

Please sign in to comment.