Example #1
0
 public function drawCached(array $cachedRoutes)
 {
     if (!$this->routes_drawn) {
         Route::willCreateCached();
         $r = Route::__set_state($cachedRoutes['root']);
         $this->set_root_route($r);
         foreach ($cachedRoutes['app'] as $params) {
             $r = Route::__set_state($params);
             $this->add($r);
         }
         if (isset($cachedRoutes['assets'])) {
             $r = Route::__set_state($cachedRoutes['assets']);
             $this->set_assets_route($r);
         }
         $this->routes_drawn = true;
     }
 }