update to 2.0.0-b9 version

fix a little bug
This commit is contained in:
jerry
2020-12-20 19:15:28 +08:00
parent bc0bb9b6b0
commit 619baf1691
2 changed files with 3 additions and 3 deletions

View File

@@ -29,8 +29,8 @@
"symfony/polyfill-mbstring": "^1.20",
"symfony/console": "^5.1",
"zhamao/connection-manager": "*@dev",
"zhamao/console": "*@dev",
"zhamao/config": "*@dev",
"zhamao/console": "^1.0",
"zhamao/config": "^1.0",
"zhamao/request": "*@dev",
"symfony/routing": "^5.1",
"symfony/polyfill-php80": "^1.20"

View File

@@ -47,12 +47,12 @@ class Framework
//定义常量
include_once "global_defines.php";
ZMAtomic::init();
ZMConfig::setDirectory(DataProvider::getWorkingDir() . '/config');
ZMConfig::setEnv($args["env"] ?? "");
if (ZMConfig::get("global") === false) {
die ("Global config load failed: " . ZMConfig::$last_error . "\nPlease init first!\n");
}
ZMAtomic::init();
try {
ManagerGM::init(ZMConfig::get("global", "swoole")["max_connection"] ?? 2048, 0.5, [
[