Merge branch '5.1'

* 5.1:
  In the new authenticator system, no auth listener is valid
This commit is contained in:
Fabien Potencier 2020-09-12 07:03:09 +02:00
commit 021ba35434

View File

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