Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function getAccessToken($grant, array $options = []) |
||
14 | { |
||
15 | $grant = $this->verifyGrant($grant); |
||
16 | |||
17 | $params = [ |
||
18 | 'redirect_uri' => $this->redirectUri, |
||
19 | ]; |
||
20 | |||
21 | $params = $grant->prepareRequestParameters($params, $options); |
||
22 | $request = $this->getAccessTokenRequest($params); |
||
23 | $response = $this->getResponse($request); |
||
24 | $prepared = $this->prepareAccessTokenResponse($response); |
||
|
|||
25 | |||
26 | return $this->createAccessToken($prepared, $grant); |
||
27 | } |
||
34 |