fix a bug

This commit is contained in:
whale
2020-06-13 14:09:25 +08:00
parent aad28f1ec4
commit 6697591a22

View File

@@ -176,13 +176,8 @@ class WorkerStartEvent implements SwooleEvent
} }
} }
} }
//加载composer类 //加载composer类
Console::info("加载composer资源中"); //remove stupid duplicate code
if (file_exists(DataProvider::getWorkingDir() . "/vendor/autoload.php")) {
require_once DataProvider::getWorkingDir() . "/vendor/autoload.php";
}
if (LOAD_MODE == 2) require_once FRAMEWORK_DIR . "/vendor/autoload.php";
//加载各个模块的注解类,以及反射 //加载各个模块的注解类,以及反射
Console::info("检索Module中"); Console::info("检索Module中");