webman+gatewayworker报错
按照【 https://www.workerman.net/doc/gateway-worker/webman.html 】的步骤先创建webman项目,再进入后require gatewaorker 后启动,但是报如下的错
ArgumentCountError: Too few arguments to function Webman\GatewayWorker\Register::__construct(), 0 passed in /www/wwwroot/scnet/vendor/workerman/webman-framework/src/Container.php on line 70 and exactly 1 expected in /www/wwwroot/scnet/vendor/webman/gateway-worker/src/Register.php:6
服务器是centos7.9,php version 是8.0
一行代码都没有写,就创建webman后引入gateworker之后就这样,
升级下
已验证,OK不报错了,麻烦更新一下文档