Laravel:onMessage is not callable

嗷嗷叫唤

原有项目a: 自定义eventHandler 运行成功,功能都正常使用

在同一服务器,

把项目a复制一份为项目B,启动失败,提示
Waring: \App\Http\Controllers\WebSocket\WebSocketController.php::onMessage is not callable
Waring: \App\Http\Controllers\WebSocket\WebSocketController.php::onMessage is not callable
Waring: \App\Http\Controllers\WebSocket\WebSocketController.php::onMessage is not callable
Workerman[worker:socket] start in DEBUG mode

在源码
src/BusinessWorker.php 加入 class_exists($this->eventHandler) 返回的是false,命名空间和类都存在

相同的代码,咋回事儿呢......

240 0 0
0个回答

🔝