原thinkphp5.1代碼
<?php
namespace think;
// 加載基礎(chǔ)文件
use think\console\command\RunServer;
require __DIR__ . '/../thinkphp/base.php';
// 支持事先使用靜態(tài)方法設(shè)置Request對象和Config對象
// 執(zhí)行應(yīng)用并響應(yīng)
$app=Container::get('app')->run()->send();