Пример #1
0
 function command_clear()
 {
     if (!$this->files->isWritable(kernel::getCachedRoutesPath())) {
         logger::info(sprintf('Sorry, route cahce path:%s cannot delete!', kernel::getCachedRoutesPath()));
     }
     $this->files->delete(kernel::getCachedRoutesPath());
     logger::info('Route cache Cleared!');
 }
Пример #2
0
 /**
  * Load the cached routes for the application.
  *
  * @return void
  */
 protected static function loadCachedRoutes()
 {
     require kernel::getCachedRoutesPath();
 }