Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\HttpKernel\CacheClearer; Chris@0: Chris@0: use Psr\Cache\CacheItemPoolInterface; Chris@0: Chris@0: /** Chris@0: * @author Nicolas Grekas Chris@0: */ Chris@0: class Psr6CacheClearer implements CacheClearerInterface Chris@0: { Chris@0: private $pools = array(); Chris@0: Chris@0: public function addPool(CacheItemPoolInterface $pool) Chris@0: { Chris@0: $this->pools[] = $pool; Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: public function clear($cacheDir) Chris@0: { Chris@0: foreach ($this->pools as $pool) { Chris@0: $pool->clear(); Chris@0: } Chris@0: } Chris@0: }