mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-09-02 05:31:36 +08:00
类不存在的异常不再手动捕获 系统自动捕获
This commit is contained in:
@@ -21,11 +21,7 @@ class Config {
|
||||
// 解析其他格式的配置参数
|
||||
static public function parse($config,$type,$range=''){
|
||||
$class = '\Think\Config\Driver\\'.ucwords($type);
|
||||
if(class_exists($class)) {
|
||||
self::set((new $class())->parse($config),'',$range);
|
||||
}else{
|
||||
E('class not exists: ' . $class);
|
||||
}
|
||||
self::set((new $class())->parse($config),'',$range);
|
||||
}
|
||||
|
||||
// 加载配置文件
|
||||
|
||||
Reference in New Issue
Block a user