@@ 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 | } |
|
@@ 442-445 (lines=4) @@ | ||
439 | ||
440 | list($this->accessToken, $this->refreshToken, $expires) = Authentication::parseTokenResponse($response); |
|
441 | ||
442 | if ($this->cache === self::CACHE_MODE_REFRESH || $this->cacheMode & self::CACHE_MODE_TOKEN) { |
|
443 | $this->cache->set($this->getCacheKey($request), $response, $expires); |
|
444 | return; |
|
445 | } |
|
446 | } |
|
447 | ||
448 | /** |