|
@@ 323-327 (lines=5) @@
|
| 320 |
|
$response = $this->adapter->end($this->adapter->start($request)); |
| 321 |
|
} |
| 322 |
|
|
| 323 |
|
if (($this->cacheMode === self::CACHE_MODE_REFRESH |
| 324 |
|
|| $this->cacheMode & self::CACHE_MODE_GET) |
| 325 |
|
&& $request->getMethod() === 'GET') { |
| 326 |
|
$this->cache->set($this->getCacheKey($request), $response); |
| 327 |
|
} |
| 328 |
|
|
| 329 |
|
return Response::fromPsr7Response($response); |
| 330 |
|
} |
|
@@ 384-387 (lines=4) @@
|
| 381 |
|
|
| 382 |
|
list($this->accessToken, $this->refreshToken, $expires) = Authentication::parseTokenResponse($response); |
| 383 |
|
|
| 384 |
|
if ($this->cache === self::CACHE_MODE_REFRESH || $this->cacheMode & self::CACHE_MODE_TOKEN) { |
| 385 |
|
$this->cache->set($this->getCacheKey($request), $response, $expires); |
| 386 |
|
return; |
| 387 |
|
} |
| 388 |
|
} |
| 389 |
|
|
| 390 |
|
/** |