From 6b520db2ebe0dc9afa1150e3e8af01e72d4701b5 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Fri, 11 Sep 2020 12:48:24 -0400 Subject: [PATCH] In the new authenticator system, no auth listener is valid --- .../SecurityBundle/DependencyInjection/SecurityExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php index d26e5cf8be..7202b2e5a9 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php @@ -588,7 +588,7 @@ class SecurityExtension extends Extension implements PrependExtensionInterface } } - if (false === $hasListeners) { + if (false === $hasListeners && !$this->authenticatorManagerEnabled) { throw new InvalidConfigurationException(sprintf('No authentication listener registered for firewall "%s".', $id)); }