/** * @param CacheItemPoolInterface $pool * @param array $tags */ private function evictTags(CacheItemPoolInterface $pool, array $tags) { if (!$pool instanceof TaggablePoolInterface || count($tags) === 0) { return; } $pool->clearTags($tags); }