コード例 #1
0
ファイル: Route.php プロジェクト: aufa/Enproject
 /**
  * Running route
  */
 public static function run()
 {
     static $called;
     if (!$called) {
         $next = debug_backtrace();
         $next = next($next);
         if (empty($next['class']) || $next['class'] != __NAMESPACE__ . '\\Controller' || strtolower($next['function']) != 'run') {
             Enproject::Run();
             // instance Call run
         }
         $called = true;
         // start Benchmark
         Benchmark::set('route', 'start');
         static::singleton()->parse();
     }
     return static::singleton();
 }