Workerman version:4.0.4 找不到WebServer类

0

C:\Users\22819\Desktop\chat\vendor\GatewayWorker>php Applications\YourApp\start_register.php Applications\YourApp\start_gateway.php Applications\YourApp\start_businessworker.php Applications\YourApp\start_web.php
----------------------- WORKERMAN -----------------------------
Workerman version:4.0.4 PHP version:7.3.10
------------------------ WORKERS -------------------------------
worker listen processes status
Register text://0.0.0.0:1238 1 [ok]
YourAppGateway websocket://0.0.0.0:8282 4 [ok]
YourAppBusinessWorkernone 4 [ok]
PHP Fatal error: Uncaught Error: Class 'Workerman\WebServer' not found in C:\Users\22819\Desktop\chat\vendor\GatewayWorker\Applications\YourApp\start_web.php:23

已邀请:

walkor

赞同来自: 陈东建

workerman 4.x将WebServer类去掉了。workerman 4.x 提供了一个更强大的web框架 https://github.com/walkor/webman


如果你只是想使用一个简单的webserver,可以参考这里自己写一个
https://github.com/walkor/workerman-chat/blob/master/Applications/Chat/start_web.php

cai584887013 - 菜鸟程序员

赞同来自:

那是不是如果用tcp的协议需要按照之前的那样的写法去弄, 不能按照webman里面去弄多个协议?

要回复问题请先登录注册