浏览代码

Move some classes in new namespaces and refactor some code.

Daniele Alessandri 14 年之前
父节点
当前提交
3b2681f2c8
共有 3 个文件被更改,包括 1030 次插入989 次删除
  1. 1 1
      examples/SimpleDebuggableConnection.php
  2. 1028 987
      lib/Predis.php
  3. 1 1
      test/PredisShared.php

+ 1 - 1
examples/SimpleDebuggableConnection.php

@@ -1,7 +1,7 @@
 <?php
 <?php
 require_once 'SharedConfigurations.php';
 require_once 'SharedConfigurations.php';
 
 
-class SimpleDebuggableConnection extends Predis\TcpConnection {
+class SimpleDebuggableConnection extends Predis\Network\TcpConnection {
     private $_debugBuffer = array();
     private $_debugBuffer = array();
     private $_tstart = 0;
     private $_tstart = 0;
 
 

文件差异内容过多而无法显示
+ 1028 - 987
lib/Predis.php


+ 1 - 1
test/PredisShared.php

@@ -50,7 +50,7 @@ class RC {
     }
     }
 
 
     private static function createConnection() {
     private static function createConnection() {
-        $serverProfile = Predis\RedisServerProfile::get('dev');
+        $serverProfile = Predis\Profiles\ServerProfile::get('dev');
         $connection = new Predis\Client(RC::getConnectionArguments(), $serverProfile);
         $connection = new Predis\Client(RC::getConnectionArguments(), $serverProfile);
         $connection->connect();
         $connection->connect();
         $connection->select(RC::DEFAULT_DATABASE);
         $connection->select(RC::DEFAULT_DATABASE);

部分文件因为文件数量过多而无法显示