mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-09-03 05:41:38 +08:00
类不存在的异常不再手动捕获 系统自动捕获
This commit is contained in:
@@ -27,12 +27,8 @@ class Cache {
|
||||
static public function connect($options=[]) {
|
||||
$type = !empty($options['type'])?$options['type']:'File';
|
||||
$class = 'Think\\Cache\\Driver\\'.ucwords($type);
|
||||
if(class_exists($class)) {
|
||||
self::$handler = new $class($options);
|
||||
return self::$handler;
|
||||
}else{
|
||||
E('_CACHE_TYPE_INVALID_:'.$type);
|
||||
}
|
||||
self::$handler = new $class($options);
|
||||
return self::$handler;
|
||||
}
|
||||
|
||||
static public function __callStatic($method, $params){
|
||||
|
||||
Reference in New Issue
Block a user