コード例 #1
0
ファイル: Router.php プロジェクト: kemosabhay/Lightning
 public static function getRoute()
 {
     global $argv;
     if (static::isCLI()) {
         // Handle a command line request.
         return static::parseRoute($argv[1], true);
     } else {
         // Handle a web page request.
         return static::parseRoute(Request::getLocation(), false);
     }
 }