我下載了官方的gatewayWorker的源碼,保存到了本地,然后直接在根目錄下執(zhí)行如下命令:
php start.php start
結果報錯,如下:
PHP Fatal error: Uncaught Error: Class 'GatewayWorker\BusinessWorker' not found in /root/Gateway/Applications/YourApp/start_businessworker.php:24
Stack trace:
thrown in /root/Gateway/Applications/YourApp/start_businessworker.php on line 24
Fatal error: Uncaught Error: Class 'GatewayWorker\BusinessWorker' not found in /root/Gateway/Applications/YourApp/start_businessworker.php on line 24
Error: Class 'GatewayWorker\BusinessWorker' not found in /root/Gateway/Applications/YourApp/start_businessworker.php on line 24
Call Stack:
0.0001 1343432 1. {main}() /root/Gateway/start.php:0
0.0009 1406112 2. require_once('/root/Gateway/Applications/YourApp/start_businessworker.php') /root/Gateway/start.php:34
另外我用phpstorm打開start_businessworker.php這個文件,頭部提示如附件圖片,代碼有一個類沒找到,另外有兩個類用不上。