Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit c8e891f

Browse files
author
Jens Schulze
committed
Merge branch 'hotfix/v1.2.1'
2 parents 5d5b152 + 83649b4 commit c8e891f

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
<a name="1.2.1"></a>
2+
## [1.2.1](https://github.com/sphereio/commercetools-php-sdk/compare/v1.2.0...v1.2.1) (2016-07-05)
3+
4+
* **OAuth:** remove dependency for CacheItem implementation ([59265b3](https://github.com/sphereio/commercetools-php-sdk/commit/59265b3))
5+
6+
7+
18
<a name="1.2.0"></a>
29
# [1.2.0](https://github.com/sphereio/commercetools-php-sdk/compare/v1.1.1...v1.2.0) (2016-06-30)
310

src/AbstractHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
abstract class AbstractHttpClient
1616
{
17-
const VERSION = '1.2.0';
17+
const VERSION = '1.2.1';
1818

1919
/**
2020
* @var AdapterInterface

src/Client/OAuth/Manager.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
namespace Commercetools\Core\Client\OAuth;
88

9-
use Cache\Adapter\Common\CacheItem;
109
use Commercetools\Core\Config;
1110
use Commercetools\Core\Error\ApiException;
1211
use Psr\Cache\CacheItemPoolInterface;
@@ -153,8 +152,7 @@ protected function cache(Token $token, $ttl, $cacheKey = null)
153152
$cache->store($cacheKey, $token->getToken(), (int)$ttl);
154153
}
155154
if ($cache instanceof CacheItemPoolInterface) {
156-
$item = new CacheItem($cacheKey, true, $token->getToken());
157-
$item->expiresAfter((int)$ttl);
155+
$item = $cache->getItem($cacheKey)->set($token->getToken())->expiresAfter((int)$ttl);
158156
$cache->save($item);
159157
}
160158
}

tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "commercetools-php-sdk-changelog",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "commercetools PHP SDK changelog generator package description",
55
"homepage": "https://github.com/sphereio/commercetools-php-sdk",
66
"bugs": "https://github.com/sphereio/commercetools-php-sdk/issues",

0 commit comments

Comments
 (0)