add global_function and ZMRequest class

This commit is contained in:
whale
2020-03-19 17:43:27 +08:00
parent 9417c3f323
commit 4187bab913
3 changed files with 86 additions and 0 deletions

View File

@@ -144,6 +144,10 @@ class WorkerStartEvent implements SwooleEvent
//加载Custom目录下的自定义的内部类
ConnectionManager::registerCustomClass();
//加载自定义的全局函数
if(file_exists(WORKING_DIR."/src/Custom/global_function.php"))
require_once WORKING_DIR."/src/Custom/global_function.php";
}
private function setAutosaveTimer($globals) {