Explorar el Código

autoloader fix

walkor hace 10 años
padre
commit
a21e03a3e1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Workerman/Worker.php

+ 1 - 1
Workerman/Worker.php

@@ -1076,9 +1076,9 @@ class Worker
         
         Timer::init(self::$globalEvent);
         
+        Autoloader::setRootPath($this->_appInitPath);
         if($this->onWorkerStart)
         {
-            Autoloader::setRootPath($this->_appInitPath);
             call_user_func($this->onWorkerStart, $this);
         }
         self::$globalEvent->loop();