From a7324f6c49ad7704702985d471c0ef968b2d6ac0 Mon Sep 17 00:00:00 2001 From: sunxyw Date: Sun, 10 Apr 2022 01:36:46 +0800 Subject: [PATCH] fix module config dir not exists --- src/ZM/Framework.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ZM/Framework.php b/src/ZM/Framework.php index fd079f22..b8127140 100644 --- a/src/ZM/Framework.php +++ b/src/ZM/Framework.php @@ -109,7 +109,7 @@ class Framework // 确保目录存在 DataProvider::createIfNotExists(app('path.data')); - DataProvider::createIfNotExists(app('path.config')); + DataProvider::createIfNotExists(app('path.module_config')); DataProvider::createIfNotExists(ZMConfig::get('global', 'crash_dir')); // 初始化连接池? @@ -624,6 +624,7 @@ class Framework $this->container->instance('path.source', DataProvider::getSourceRootDir()); $this->container->alias('path.source', 'path.base'); $this->container->instance('path.config', DataProvider::getSourceRootDir() . '/config'); + $this->container->instance('path.module_config', ZMConfig::get('global', 'config_dir')); $this->container->singleton('path.data', function () { return DataProvider::getDataFolder(); });