| Total Complexity | 5 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class AuthController |
||
| 20 | { |
||
| 21 | public function do(GuardInterface $guard) |
||
| 22 | { |
||
| 23 | if (!$guard->allows('do')) { |
||
| 24 | throw new ControllerException("Unauthorized permission 'do'", ControllerException::FORBIDDEN); |
||
| 25 | } |
||
| 26 | |||
| 27 | return 'ok'; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function token(AuthContextInterface $authContext) |
||
| 37 | } |
||
| 38 | |||
| 39 | public function login(AuthContextInterface $authContext, TokenStorageInterface $tokenStorage) |
||
| 48 |