Sfoglia il codice sorgente

Autoloader::setRootPath(__DIR__);

walkor 10 anni fa
parent
commit
8514c8769e
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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");