Explorar o código

Autoloader::setRootPath(__DIR__);

walkor %!s(int64=10) %!d(string=hai) anos
pai
achega
8514c8769e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Applications/Todpole/start.php

+ 2 - 0
Applications/Todpole/start.php

@@ -3,9 +3,11 @@ use \Workerman\Worker;
 use \Workerman\WebServer;
 use \GatewayWorker\Gateway;
 use \GatewayWorker\BusinessWorker;
+use \Workerman\Autoloader;
 
 // 自动加载类
 require_once __DIR__ . '/../../Workerman/Autoloader.php';
+Autoloader::setRootPath(__DIR__);
 
 // gateway 进程
 $gateway = new Gateway("Websocket://0.0.0.0:8585");