minor #28670 Fix a typo in error messages (AchillesKal)

This PR was merged into the 2.8 branch.

Discussion
----------

Fix a typo in error messages

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #28667
| License       | MIT
| Doc PR        | no

Fixes a typo in some error messages. Configurators should be Authenticators.

Commits
-------

07b67ec Fix a typo in error messages
This commit is contained in:
Robin Chalas 2018-10-01 20:46:47 +02:00
commit a1312fa4b2
2 changed files with 2 additions and 2 deletions

View File

@ -112,6 +112,6 @@ class GuardAuthenticationFactory implements SecurityFactoryInterface
}
// we have multiple entry points - we must ask them to configure one
throw new \LogicException(sprintf('Because you have multiple guard configurators, you need to set the "guard.entry_point" key to one of your configurators (%s)', implode(', ', $authenticatorIds)));
throw new \LogicException(sprintf('Because you have multiple guard authenticators, you need to set the "guard.entry_point" key to one of your authenticators (%s)', implode(', ', $authenticatorIds)));
}
}

View File

@ -91,7 +91,7 @@ class GuardAuthenticationListener implements ListenerInterface
$request = $event->getRequest();
try {
if (null !== $this->logger) {
$this->logger->debug('Calling getCredentials() on guard configurator.', array('firewall_key' => $this->providerKey, 'authenticator' => \get_class($guardAuthenticator)));
$this->logger->debug('Calling getCredentials() on guard authenticator.', array('firewall_key' => $this->providerKey, 'authenticator' => \get_class($guardAuthenticator)));
}
// allow the authenticator to fetch authentication info from the request