// +---------------------------------------------------------------------- // [ 应用入口文件 ] namespace think; $path = '/'.$argv[1]; $_GET['s'] = $_SERVER['s'] = $_SERVER['REQUEST_URI'] = $path; if('s='.$path !== $_SERVER["QUERY_STRING"]){ header("Location: {$path}"); } require __DIR__ . '/../vendor/autoload.php'; // 执行HTTP应用并响应 $http = (new App())->http; $response = $http->run(); // $response->send(); $http->end($response);