| Total Complexity | 5 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class UserChecker implements UserCheckerInterface |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Checks the user account before authentication. |
||
| 23 | * |
||
| 24 | * @throws AccountStatusException |
||
| 25 | */ |
||
| 26 | public function checkPreAuth(UserInterface $user) |
||
| 35 | /*throw new CustomUserMessageAuthenticationException( |
||
| 36 | 'Your account was disabled. Sorry about that!' |
||
| 37 | );*/ |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Checks the user account after authentication. |
||
| 43 | * |
||
| 44 | * @throws AccountStatusException |
||
| 45 | */ |
||
| 46 | public function checkPostAuth(UserInterface $user) |
||
| 52 | } |