think-worker icon indicating copy to clipboard operation
think-worker copied to clipboard

Workerman extend for ThinkPHP

Results 25 think-worker issues
Sort by recently updated
recently updated
newest added

在自定义异常处理接管中"\app\common\exception\Http", 获取不到Request 试过:request()->baseUrl() 和 Request::baseUrl() 都拿不到,请问如何在异常处理中获取request内容呢?

如截图的效果,使用官方的workerman组件,并不能正确返回预期的类型,比如css,并没有返回css,而是text/plain,js也是. 我是继承了官方组件http,重写了几行内容,但并非我重写的原因,官方组件的效果也是如此. 我的php版本是7.2.13,系统是fedora29. 求证是否存在此问题或如何修复,我临时打算重写为其他方法.

windows系统启动`php think work:server` 报错信息如下: ` [think\exception\ErrorException] Cannot use Workerman\Worker as Worker because the name is already in use ` 解决办法: 找到目录: \vendor\topthink\think-worker\src\command\Server.php 找到命名空间: use Workerman\Worker; 修改为: use Workerman\Worker as Worker2;...

有示例demo吗?说明手册有吗?