Skip to content

Commit

Permalink
added check for service existence
Browse files Browse the repository at this point in the history
  • Loading branch information
Ne-Lexa committed Jun 13, 2020
1 parent b945ab0 commit 771243a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -45,7 +45,7 @@ private function registerCsrfProtectionListener(ContainerBuilder $container)

protected function registerLogoutHandler(ContainerBuilder $container)
{
if (!$container->has('security.logout_listener')) {
if (!$container->has('security.logout_listener') || !$container->has('security.csrf.token_storage')) {
return;
}

Expand Down

0 comments on commit 771243a

Please sign in to comment.