mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
驱动设计支持使用 namespace配置改变默认命名空间位置
This commit is contained in:
@@ -40,7 +40,7 @@ class Config
|
||||
if (empty($type)) {
|
||||
$type = pathinfo($config, PATHINFO_EXTENSION);
|
||||
}
|
||||
$class = '\\think\\config\\driver\\' . ucwords($type);
|
||||
$class = (false === strpos($type, '\\')) ? '\\think\\config\\driver\\' . ucwords($type) : $type;
|
||||
self::set((new $class())->parse($config), '', $range);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user