浏览代码

Rename session handler class.

Daniele Alessandri 11 年之前
父节点
当前提交
7d60e995f8
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      examples/SessionHandler.php
  2. 1 1
      lib/Predis/Session/Handler.php

+ 1 - 1
examples/SessionHandler.php

@@ -21,7 +21,7 @@ if (!interface_exists('SessionHandlerInterface')) {
 $client = new Predis\Client($single_server, array('prefix' => 'sessions:'));
 
 // Set `gc_maxlifetime` so that a session will be expired after 5 seconds since last access.
-$handler = new Predis\Session\SessionHandler($client, array('gc_maxlifetime' => 5));
+$handler = new Predis\Session\Handler($client, array('gc_maxlifetime' => 5));
 
 // Register our session handler (it uses `session_set_save_handler()` internally).
 $handler->register();

+ 1 - 1
lib/Predis/Session/SessionHandler.php → lib/Predis/Session/Handler.php

@@ -24,7 +24,7 @@ use Predis\ClientInterface;
  *
  * @author Daniele Alessandri <suppakilla@gmail.com>
  */
-class SessionHandler implements SessionHandlerInterface
+class Handler implements SessionHandlerInterface
 {
     protected $client;
     protected $ttl;