mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-09-02 13:31:38 +08:00
改进实例化类 命名空间大小写的问题
This commit is contained in:
@@ -22,7 +22,7 @@ class Log
|
||||
public static function init($config = [])
|
||||
{
|
||||
$type = isset($config['type']) ? $config['type'] : 'File';
|
||||
$class = '\\think\\log\\driver\\' . strtolower($type);
|
||||
$class = '\\think\\log\\driver\\' . ucwords($type);
|
||||
unset($config['type']);
|
||||
self::$storage = new $class($config);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user