Exemplo n.º 1
0
 /**
  * Store the url map cache if needed
  */
 public function __destruct()
 {
     if ($this->productionMode && !$this->cached) {
         $this->cache->set('routes', $this->routes);
     }
 }
Exemplo n.º 2
0
 /**
  * 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));
     }
 }
Exemplo n.º 3
0
 /**
  * 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));
     }
 }
Exemplo n.º 4
0
 /**
  * Store the url map cache if needed
  */
 public function __destruct()
 {
     if ($this->productionMode && !$this->cached) {
         $this->cache->set('routes', Routes::toArray());
     }
 }