mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 15:45:36 +08:00
update to 2.0.0-b7 version
fix environment getter
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user