/** * Store the url map cache if needed */ public function __destruct() { if ($this->productionMode && !$this->cached) { $this->cache->set('routes', $this->routes); } }
/** * Store the url map cache if needed */ protected function saveRoutesToCache() { if ($this->productionMode && !$this->cached && $this->enableRouteCache) { $this->cache->set('routes', Routes::toArray() + array('apiVersionMap' => $this->apiVersionMap)); } }
/** * Store the url map cache if needed */ public function __destruct() { if ($this->productionMode && !$this->cached) { $this->cache->set('routes', Routes::toArray() + array('apiVersionMap' => $this->apiVersionMap)); } }
/** * Store the url map cache if needed */ public function __destruct() { if ($this->productionMode && !$this->cached) { $this->cache->set('routes', Routes::toArray()); } }