update to 2.5.1 (build 416)

This commit is contained in:
crazywhalecc
2021-07-09 12:59:07 +08:00
parent d67dfe46f6
commit a6f5952dee
7 changed files with 73 additions and 22 deletions

View File

@@ -20,6 +20,10 @@ class ModuleListCommand extends Command
protected function configure() {
$this->setDescription("Build an \".phar\" file | 将项目构建一个phar包");
$this->setHelp("此功能将会把炸毛框架的模块打包为\".phar\",供发布和执行。");
// ...
}
protected function execute(InputInterface $input, OutputInterface $output): int {
ZMConfig::setDirectory(DataProvider::getSourceRootDir() . '/config');
ZMConfig::setEnv($args["env"] ?? "");
if (ZMConfig::get("global") === false) {
@@ -38,10 +42,7 @@ class ModuleListCommand extends Command
$timezone = ZMConfig::get("global", "timezone") ?? "Asia/Shanghai";
date_default_timezone_set($timezone);
// ...
}
protected function execute(InputInterface $input, OutputInterface $output): int {
$list = ModuleManager::getConfiguredModules();
foreach ($list as $v) {