4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\HttpKernel\CacheClearer;
14 use Psr\Cache\CacheItemPoolInterface;
17 * @author Nicolas Grekas <p@tchwork.com>
19 class Psr6CacheClearer implements CacheClearerInterface
21 private $pools = array();
23 public function addPool(CacheItemPoolInterface $pool)
25 $this->pools[] = $pool;
31 public function clear($cacheDir)
33 foreach ($this->pools as $pool) {