public function commit() { foreach ($this->tagsToFlush as $tag) { $this->routeCachingService->flushCachesByTag($tag); } $this->tagsToFlush = array(); }