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!'); }
/** * Load the cached routes for the application. * * @return void */ protected static function loadCachedRoutes() { require kernel::getCachedRoutesPath(); }