报错如下:Class 'GatewayWorker\Protocols\GatewayProtocol' not found

怎么都无法自动引入类的:

解决方法修改文件为require_once:

vendor\workerman\gateway-worker\src\Gateway.php中加入

require_once __DIR__."/Protocols/GatewayProtocol.php";
require_once __DIR__."/Lib/Gateway.php";

  

相关文章:

  • 2021-10-23
  • 2022-12-23
  • 2021-07-22
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-19
  • 2022-12-23
  • 2021-08-30
  • 2021-04-06
  • 2022-12-23
  • 2021-05-04
  • 2021-06-30
相关资源
相似解决方案