| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function authenticate(TokenInterface $token) |
||
| 30 | { |
||
| 31 | $authenticatedToken = parent::authenticate($token); |
||
| 32 | if (empty($authenticatedToken)) { |
||
| 33 | throw new AuthenticationException('The token is not supported by this authentication provider.'); |
||
| 34 | } |
||
| 35 | |||
| 36 | $this->permissionResolver->setCurrentUserReference( |
||
| 37 | $authenticatedToken->getUser()->getAPIUser() |
||
| 38 | ); |
||
| 39 | |||
| 40 | return $authenticatedToken; |
||
| 41 | } |
||
| 42 | } |
||
| 43 |