废弃think/session/Driver.php

This commit is contained in:
huangdijia
2016-01-26 08:46:33 +08:00
parent 26d970a203
commit 20bdfe4046
3 changed files with 14 additions and 30 deletions

View File

@@ -12,9 +12,9 @@
namespace think\session\driver;
use think\Config;
use think\session\Driver;
use SessionHandler;
class Redis extends Driver
class Redis extends SessionHandler
{
protected $handler = null;
protected $config = [
@@ -27,6 +27,11 @@ class Redis extends Driver
'session_name' => '', // memcache key前缀
];
public function __construct($config = [])
{
$this->config = array_merge($this->config, $config);
}
/**
* 打开Session
* @access public