@@ 336-340 (lines=5) @@ | ||
333 | $response = $this->adapter->end($this->adapter->start($request)); |
|
334 | } |
|
335 | ||
336 | if (($this->cacheMode === self::CACHE_MODE_REFRESH |
|
337 | || $this->cacheMode & self::CACHE_MODE_GET) |
|
338 | && $request->getMethod() === 'GET') { |
|
339 | $this->cache->set($this->getCacheKey($request), $response); |
|
340 | } |
|
341 | ||
342 | return Response::fromPsr7Response($response); |
|
343 | } |
|
@@ 397-400 (lines=4) @@ | ||
394 | ||
395 | list($this->accessToken, $this->refreshToken, $expires) = Authentication::parseTokenResponse($response); |
|
396 | ||
397 | if ($this->cache === self::CACHE_MODE_REFRESH || $this->cacheMode & self::CACHE_MODE_TOKEN) { |
|
398 | $this->cache->set($this->getCacheKey($request), $response, $expires); |
|
399 | return; |
|
400 | } |
|
401 | } |
|
402 | ||
403 | /** |