From 1124574f4adee8c769d6736b24587bb590ca7ec6 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Thu, 7 Jan 2016 00:47:40 +0100 Subject: [PATCH] bugfixes --- composer.json | 1 - src/CachePoolChain.php | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 7fda9fb..49dd8ef 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,6 @@ "require": { "php": "^5.5|^7.0", - "ext-chain": "*", "psr/cache": "1.0.0", "cache/adapter-common": "^0.1", "cache/taggable-cache": "^0.2" diff --git a/src/CachePoolChain.php b/src/CachePoolChain.php index 680f655..2465910 100644 --- a/src/CachePoolChain.php +++ b/src/CachePoolChain.php @@ -56,7 +56,7 @@ public function getItems(array $keys = [], array $tags = []) { $hits = []; foreach ($this->pools as $pool) { - $items = $pool->getItem($keys, $tags); + $items = $pool->getItems($keys, $tags); /** @var CacheItemInterface $item */ foreach ($items as $item) { if ($item->isHit()) { @@ -108,7 +108,7 @@ public function deleteItems(array $keys, array $tags = []) { $result = true; foreach ($this->pools as $pool) { - $result = $result && $pool->deleteItem($keys, $tags); + $result = $result && $pool->deleteItems($keys, $tags); } return $result;