示例#1
0
文件: route.php 项目: 453111208/bbc
 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
文件: route.php 项目: 453111208/bbc
 /**
  * Load the cached routes for the application.
  *
  * @return void
  */
 protected static function loadCachedRoutes()
 {
     require kernel::getCachedRoutesPath();
 }