minor #35657 [Security] Fix exception name in doc comments (chalasr)

This PR was squashed before being merged into the 3.4 branch (closes #35657).

Discussion
----------

[Security] Fix exception name in doc comments

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Commits
-------

f10098e9f1 [Security] Fix exception name in doc comments
This commit is contained in:
Fabien Potencier 2020-02-10 09:04:06 +01:00
commit 9e0a39ee05
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
namespace Symfony\Component\Security\Core\Exception;
/**
* AuthenticationServiceException is thrown when an authenticated token becomes un-authenticated between requests.
* AuthenticationExpiredException is thrown when an authenticated token becomes un-authenticated between requests.
*
* In practice, this is due to the User changing between requests (e.g. password changes),
* causes the token to become un-authenticated.

View File

@ -82,7 +82,7 @@ class GuardAuthenticationProvider implements AuthenticationProviderInterface
return $token;
}
// this AccountStatusException causes the user to be logged out
// this AccountExpiredException causes the user to be logged out
throw new AuthenticationExpiredException();
}