update to 2.0.0-b7 version

fix environment getter
This commit is contained in:
jerry
2020-12-20 18:40:26 +08:00
parent 81365173d2
commit 42d9c97711
3 changed files with 5 additions and 4 deletions

View File

@@ -69,7 +69,7 @@ class ConsoleApplication extends Application
}
ZMConfig::setDirectory(DataProvider::getWorkingDir() . '/config');
ZMConfig::env($args["env"] ?? "");
ZMConfig::setEnv($args["env"] ?? "");
if (ZMConfig::get("global") === false) {
echo ("Global config load failed: " . ZMConfig::$last_error."\nPlease init first!\n");
$this->add(new InitCommand());