修正cache驱动路径

This commit is contained in:
huangdijia
2015-12-15 14:37:14 +08:00
parent 41d5300029
commit 2d7a1b595c

View File

@@ -29,7 +29,7 @@ class Cache
public static function connect($options = [])
{
$type = !empty($options['type']) ? $options['type'] : 'File';
$class = 'think\\cache\\driver\\' . ucwords($type);
$class = '\\think\\cache\\driver\\' . ucwords($type);
self::$handler = new $class($options);
return self::$handler;
}