thinkphp5.1如何修改入口文件,让它在workerman4.X中运行http服务

admin

原thinkphp5.1代码

<?php

namespace think;

// 加载基础文件
use think\console\command\RunServer;

require __DIR__ . '/../thinkphp/base.php';

// 支持事先使用静态方法设置Request对象和Config对象

// 执行应用并响应
$app=Container::get('app')->run()->send();

截图

1850 0 0
0个回答

年代过于久远,无法发表回答
🔝