diff options
-rw-r--r-- | Guard/Firewall/GuardAuthenticationListener.php | 2 | ||||
-rw-r--r-- | Guard/GuardAuthenticatorHandler.php | 4 | ||||
-rw-r--r-- | Guard/Provider/GuardAuthenticationProvider.php | 8 | ||||
-rw-r--r-- | Guard/Token/PreAuthenticationGuardToken.php | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/Guard/Firewall/GuardAuthenticationListener.php b/Guard/Firewall/GuardAuthenticationListener.php index 9e2a886..d3be9ab 100644 --- a/Guard/Firewall/GuardAuthenticationListener.php +++ b/Guard/Firewall/GuardAuthenticationListener.php @@ -162,7 +162,7 @@ class GuardAuthenticationListener implements ListenerInterface if (null === $this->rememberMeServices) { if (null !== $this->logger) { - $this->logger->info('Remember me skipped: it is not configured for the firewall', array('authenticator' => get_class($guardAuthenticator))); + $this->logger->info('Remember me skipped: it is not configured for the firewall.', array('authenticator' => get_class($guardAuthenticator))); } return; diff --git a/Guard/GuardAuthenticatorHandler.php b/Guard/GuardAuthenticatorHandler.php index 5be7eb5..465b45a 100644 --- a/Guard/GuardAuthenticatorHandler.php +++ b/Guard/GuardAuthenticatorHandler.php @@ -68,7 +68,7 @@ class GuardAuthenticatorHandler } throw new \UnexpectedValueException(sprintf( - 'The %s::onAuthenticationSuccess method must return null or a Response object. You returned %s', + 'The %s::onAuthenticationSuccess method must return null or a Response object. You returned %s.', get_class($guardAuthenticator), is_object($response) ? get_class($response) : gettype($response) )); @@ -117,7 +117,7 @@ class GuardAuthenticatorHandler } throw new \UnexpectedValueException(sprintf( - 'The %s::onAuthenticationFailure method must return null or a Response object. You returned %s', + 'The %s::onAuthenticationFailure method must return null or a Response object. You returned %s.', get_class($guardAuthenticator), is_object($response) ? get_class($response) : gettype($response) )); diff --git a/Guard/Provider/GuardAuthenticationProvider.php b/Guard/Provider/GuardAuthenticationProvider.php index c21af4c..4fefee3 100644 --- a/Guard/Provider/GuardAuthenticationProvider.php +++ b/Guard/Provider/GuardAuthenticationProvider.php @@ -52,7 +52,7 @@ class GuardAuthenticationProvider implements AuthenticationProviderInterface public function authenticate(TokenInterface $token) { if (!$this->supports($token)) { - throw new \InvalidArgumentException('GuardAuthenticationProvider only supports NonAuthenticatedGuardToken'); + throw new \InvalidArgumentException('GuardAuthenticationProvider only supports GuardTokenInterface.'); } if (!$token instanceof PreAuthenticationGuardToken) { @@ -87,7 +87,7 @@ class GuardAuthenticationProvider implements AuthenticationProviderInterface } throw new \LogicException(sprintf( - 'The correct GuardAuthenticator could not be found for unique key "%s". The listener and provider should be passed the same list of authenticators!?', + 'The correct GuardAuthenticator could not be found for unique key "%s". The listener and provider should be passed the same list of authenticators.', $token->getGuardProviderKey() )); } @@ -99,7 +99,7 @@ class GuardAuthenticationProvider implements AuthenticationProviderInterface if (!$user instanceof UserInterface) { throw new \UnexpectedValueException(sprintf( - 'The %s::authenticate method must return a UserInterface. You returned %s', + 'The %s::authenticate method must return a UserInterface. You returned %s.', get_class($guardAuthenticator), is_object($user) ? get_class($user) : gettype($user) )); @@ -113,7 +113,7 @@ class GuardAuthenticationProvider implements AuthenticationProviderInterface $authenticatedToken = $guardAuthenticator->createAuthenticatedToken($user, $this->providerKey); if (!$authenticatedToken instanceof TokenInterface) { throw new \UnexpectedValueException(sprintf( - 'The %s::createAuthenticatedToken method must return a TokenInterface. You returned %s', + 'The %s::createAuthenticatedToken method must return a TokenInterface. You returned %s.', get_class($guardAuthenticator), is_object($authenticatedToken) ? get_class($authenticatedToken) : gettype($authenticatedToken) )); diff --git a/Guard/Token/PreAuthenticationGuardToken.php b/Guard/Token/PreAuthenticationGuardToken.php index 8950f93..cc52ec2 100644 --- a/Guard/Token/PreAuthenticationGuardToken.php +++ b/Guard/Token/PreAuthenticationGuardToken.php @@ -51,6 +51,6 @@ class PreAuthenticationGuardToken extends AbstractToken implements GuardTokenInt public function setAuthenticated($authenticated) { - throw new \Exception('The PreAuthenticationGuardToken is *always* not authenticated'); + throw new \LogicException('The PreAuthenticationGuardToken is *always* not authenticated.'); } } |