|
@@ 353-357 (lines=5) @@
|
| 350 |
|
$response = $this->adapter->end($this->adapter->start($request)); |
| 351 |
|
} |
| 352 |
|
|
| 353 |
|
if (($this->cacheMode === self::CACHE_MODE_REFRESH |
| 354 |
|
|| $this->cacheMode & self::CACHE_MODE_GET) |
| 355 |
|
&& $request->getMethod() === 'GET') { |
| 356 |
|
$this->cache->set($this->getCacheKey($request), $response); |
| 357 |
|
} |
| 358 |
|
|
| 359 |
|
return Response::fromPsr7Response($response); |
| 360 |
|
} |
|
@@ 414-417 (lines=4) @@
|
| 411 |
|
|
| 412 |
|
list($this->accessToken, $this->refreshToken, $expires) = Authentication::parseTokenResponse($response); |
| 413 |
|
|
| 414 |
|
if ($this->cache === self::CACHE_MODE_REFRESH || $this->cacheMode & self::CACHE_MODE_TOKEN) { |
| 415 |
|
$this->cache->set($this->getCacheKey($request), $response, $expires); |
| 416 |
|
return; |
| 417 |
|
} |
| 418 |
|
} |
| 419 |
|
|
| 420 |
|
/** |