add runtime preferences config dir fallback

This commit is contained in:
sunxyw
2023-03-17 16:37:45 +08:00
parent 61684d1902
commit 5d6d819ca3
2 changed files with 3 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ return [
'source' => [
'extensions' => ['php', 'yaml', 'yml', 'json', 'toml'], // 配置文件扩展名
'paths' => [
SOURCE_ROOT_DIR . '/config', // 配置文件所在目录
\ZM\Framework::getInstance()->runtime_preferences->getConfigDir(), // 配置文件所在目录
// 可以添加多个配置文件目录
],
],