mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-03 05:52:48 +08:00
改进实例化类 命名空间大小写的问题
This commit is contained in:
@@ -29,7 +29,7 @@ class Cache
|
||||
public static function connect($options = [])
|
||||
{
|
||||
$type = !empty($options['type']) ? $options['type'] : 'File';
|
||||
$class = 'think\\cache\\driver\\' . strtolower($type);
|
||||
$class = 'think\\cache\\driver\\' . ucwords($type);
|
||||
self::$handler = new $class($options);
|
||||
return self::$handler;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user