From 26dccbe986512191ca27984ece4ab9974ecdfdb9 Mon Sep 17 00:00:00 2001 From: wapplay Date: Sat, 13 Jun 2020 15:30:29 +0300 Subject: [PATCH] added check for the existence of the 'security.authenticator.manager' service --- .../DependencyInjection/Compiler/RegisterCsrfFeaturesPass.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/RegisterCsrfFeaturesPass.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/RegisterCsrfFeaturesPass.php index f682b0c43b464..ccab76679a32a 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/RegisterCsrfFeaturesPass.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/RegisterCsrfFeaturesPass.php @@ -33,7 +33,7 @@ public function process(ContainerBuilder $container) private function registerCsrfProtectionListener(ContainerBuilder $container) { - if (!$container->has('security.csrf.token_manager')) { + if (!$container->has('security.authenticator.manager') || !$container->has('security.csrf.token_manager')) { return; }