/** * {@inheritdoc} */ public function findMatching($route, $host) { if ($this->cache->contains($this->getCacheKey())) { return $this->cache->fetch($this->getCacheKey()); } $rules = $this->ruleProvider->getRules(); $this->cache->save($this->getCacheKey(), $rules, $this->ttl); return $rules; }