You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param UserInterface $user The user to authenticate
45
+
* @param string|null $authenticatorName The authenticator name (e.g. "form_login") or service id (e.g. SomeApiKeyAuthenticator::class) - required only if multiple authenticators are configured
46
+
* @param string|null $firewallName The firewall name - required only if multiple firewalls are configured
thrownewLogicException('No authenticator was found for the firewall "%s".');
76
+
thrownewLogicException(sprintf('No authenticator was found for the firewall "%s".', $firewallName));
65
77
}
66
-
67
78
if (1 < \count($authenticatorIds)) {
68
79
thrownewLogicException(sprintf('Too much authenticators were found for the current firewall "%s". You must provide an instance of "%s" to login programmatically. The available authenticators for the firewall "%s" are "%s".', $firewallName, AuthenticatorInterface::class, $firewallName, implode('" ,"', $authenticatorIds)));
if (!$firewallAuthenticatorLocator->has($authenticatorId)) {
76
-
thrownewLogicException(sprintf('Unable to find an authenticator named "%s" for the firewall "%s". Try to pass a firewall name in the Security::login() method.', $authenticatorName, $firewallName));
85
+
if ($firewallAuthenticatorLocator->has($authenticatorName)) {
thrownewLogicException('No firewall found as the current route is not covered by any firewall.');
91
+
if (!$firewallAuthenticatorLocator->has($authenticatorId)) {
92
+
thrownewLogicException(sprintf('Unable to find an authenticator named "%s" for the firewall "%s". Available authenticators: "%s".', $authenticatorName, implode('", "', $firewallAuthenticatorLocator->getProvidedServices())));
0 commit comments