Kaynağa Gözat

Rename session handler class.

Daniele Alessandri 11 yıl önce
ebeveyn
işleme
7d60e995f8

+ 1 - 1
examples/SessionHandler.php

@@ -21,7 +21,7 @@ if (!interface_exists('SessionHandlerInterface')) {
 $client = new Predis\Client($single_server, array('prefix' => 'sessions:'));
 $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.
 // 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).
 // Register our session handler (it uses `session_set_save_handler()` internally).
 $handler->register();
 $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>
  * @author Daniele Alessandri <suppakilla@gmail.com>
  */
  */
-class SessionHandler implements SessionHandlerInterface
+class Handler implements SessionHandlerInterface
 {
 {
     protected $client;
     protected $client;
     protected $ttl;
     protected $ttl;