Beispiel #1
0
 /**
  * loads the routes from cache
  *
  * @return bool
  */
 public function loadFromCache()
 {
     $cached = $this->cache->get("routes");
     if ($cached === null) {
         return false;
     }
     $this->routes = unserialize($cached);
     return true;
 }
 /**
  * loads the parameters from cache
  */
 private function loadFromCache()
 {
     $cached = $this->cache->get("config");
     if ($cached === null) {
         return;
     }
     $this->parameters = unserialize($cached);
     if (!is_array($this->parameters)) {
         $this->parameters = [];
     }
     $this->loaded = true;
 }
 /**
  * loads the definitions from cache
  *
  * @return bool
  */
 private function loadFromCache()
 {
     $cached = $this->cache->get("container");
     if ($cached === null) {
         return false;
     }
     $this->definitions = unserialize($cached);
     if (!is_array($this->definitions)) {
         $this->definitions = [];
     }
     $this->loaded = true;
     return true;
 }