mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
使用新的自动加载机制
preg_replace_callback取代/e模式
This commit is contained in:
@@ -65,7 +65,7 @@ class Session {
|
||||
session_cache_expire($config['cache_expire']);
|
||||
}
|
||||
if(!empty($config['type'])) { // 读取session驱动
|
||||
$class = '\\think\\session\\driver\\'. ucwords(strtolower($config['type']));
|
||||
$class = '\\think\\session\\driver\\'. strtolower($config['type']);
|
||||
// 检查驱动类
|
||||
session_set_save_handler(new $class());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user