mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
使用新的自动加载机制
preg_replace_callback取代/e模式
This commit is contained in:
@@ -25,7 +25,7 @@ class Config {
|
||||
if(empty($type)) {
|
||||
$type = substr(strrchr($config, '.'),1);
|
||||
}
|
||||
$class = '\\think\\config\driver\\'.ucwords($type);
|
||||
$class = '\\think\\config\driver\\'.strtolower($type);
|
||||
self::set((new $class())->parse($config),'',$range);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user