Example #1
0
 /**
  * Require files of Console
  */
 protected static function commands($routes)
 {
     foreach (self::fetch("console/commands") as $file) {
         Connector::need($file);
     }
     if ($routes) {
         foreach (self::fetch("bundles/" . Application::getCurrentModule() . "/console/commands") as $file_md) {
             Connector::need($file_md);
         }
         foreach (self::fetch(Application::$root . Config::get('panel.path') . "console/commands") as $file_pnlmd) {
             Connector::need($file_pnlmd);
         }
     }
 }