|
@@ 329-333 (lines=5) @@
|
| 326 |
|
$response = $this->adapter->end($this->adapter->start($request)); |
| 327 |
|
} |
| 328 |
|
|
| 329 |
|
if (($this->cacheMode === self::CACHE_MODE_REFRESH |
| 330 |
|
|| $this->cacheMode & self::CACHE_MODE_GET) |
| 331 |
|
&& $request->getMethod() === 'GET') { |
| 332 |
|
$this->cache->set($this->getCacheKey($request), $response); |
| 333 |
|
} |
| 334 |
|
|
| 335 |
|
return $response; |
| 336 |
|
} |
|
@@ 390-393 (lines=4) @@
|
| 387 |
|
|
| 388 |
|
list($this->accessToken, $this->refreshToken, $expires) = Authentication::parseTokenResponse($response); |
| 389 |
|
|
| 390 |
|
if ($this->cache === self::CACHE_MODE_REFRESH || $this->cacheMode & self::CACHE_MODE_TOKEN) { |
| 391 |
|
$this->cache->set($this->getCacheKey($request), $response, $expires); |
| 392 |
|
return; |
| 393 |
|
} |
| 394 |
|
} |
| 395 |
|
|
| 396 |
|
/** |