/** * Flush caches according to the previously registered node changes. * * @return void */ public function commit() { foreach ($this->tagsToFlush as $tag) { $this->routeCachingService->flushCachesByTag($tag); } $this->tagsToFlush = array(); }