mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 07:32:48 +08:00
改进Config类load方法 一级配置名称强制转为小写
This commit is contained in:
@@ -59,6 +59,7 @@ class Config
|
|||||||
self::$config[$range] = [];
|
self::$config[$range] = [];
|
||||||
}
|
}
|
||||||
if (is_file($file)) {
|
if (is_file($file)) {
|
||||||
|
$name = strtolower($name);
|
||||||
$type = pathinfo($file, PATHINFO_EXTENSION);
|
$type = pathinfo($file, PATHINFO_EXTENSION);
|
||||||
if ('php' == $type) {
|
if ('php' == $type) {
|
||||||
return self::set(include $file, $name, $range);
|
return self::set(include $file, $name, $range);
|
||||||
|
|||||||
Reference in New Issue
Block a user