In the new authenticator system, no auth listener is valid

This commit is contained in:
Ryan Weaver 2020-09-11 12:48:24 -04:00
parent ca8944b512
commit 6b520db2eb

View File

@ -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));
}