diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2015-10-02 15:22:00 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2015-10-02 15:22:00 +0200 |
commit | e7529149fc3d42bab75d5d84f33dfa08bf649079 (patch) | |
tree | 32496a4dfb530c2950dce16428132124c75e5127 | |
parent | d2ccf53c9b72af1feaf0096f72c9d4ae9d7b4501 (diff) | |
parent | 0d3da2a02c2ebabb1e6a4ce898308c1989963185 (diff) | |
download | symfony-security-e7529149fc3d42bab75d5d84f33dfa08bf649079.zip symfony-security-e7529149fc3d42bab75d5d84f33dfa08bf649079.tar.gz symfony-security-e7529149fc3d42bab75d5d84f33dfa08bf649079.tar.bz2 |
Merge branch '2.8'
* 2.8:
Updated the stlyes of the YAML commands
[Security] Configuring a user checker per firewall
[PropertyInfo] Test behavior when an extractor return null.
-rw-r--r-- | Core/User/UserCheckerInterface.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Core/User/UserCheckerInterface.php b/Core/User/UserCheckerInterface.php index 3dd8d51..62ea9f0 100644 --- a/Core/User/UserCheckerInterface.php +++ b/Core/User/UserCheckerInterface.php @@ -11,10 +11,13 @@ namespace Symfony\Component\Security\Core\User; +use Symfony\Component\Security\Core\Exception\AccountStatusException; + /** - * UserCheckerInterface checks user account when authentication occurs. + * Implement to throw AccountStatusException during the authentication process. * - * This should not be used to make authentication decisions. + * Can be used when you want to check the account status, e.g when the account is + * disabled or blocked. This should not be used to make authentication decisions. * * @author Fabien Potencier <fabien@symfony.com> */ @@ -24,6 +27,8 @@ interface UserCheckerInterface * Checks the user account before authentication. * * @param UserInterface $user a UserInterface instance + * + * @throws AccountStatusException */ public function checkPreAuth(UserInterface $user); @@ -31,6 +36,8 @@ interface UserCheckerInterface * Checks the user account after authentication. * * @param UserInterface $user a UserInterface instance + * + * @throws AccountStatusException */ public function checkPostAuth(UserInterface $user); } |