소스 검색

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;