Преглед на файлове

Move the definition of the OBJECT commad to the server profile for Redis 2.2.

Daniele Alessandri преди 14 години
родител
ревизия
6e2bba3ddb
променени са 2 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 0
      lib/Predis/Profiles/ServerVersion22.php
  2. 0 1
      lib/Predis/Profiles/ServerVersionNext.php

+ 3 - 0
lib/Predis/Profiles/ServerVersion22.php

@@ -176,6 +176,9 @@ class ServerVersion22 extends ServerProfile {
 
             /* commands operating on sorted sets */
             'zrevrangebyscore'          => '\Predis\Commands\ZSetReverseRangeByScore',
+
+            /* remote server control commands */
+            'object'                => '\Predis\Commands\DebugObject',
         );
     }
 }

+ 0 - 1
lib/Predis/Profiles/ServerVersionNext.php

@@ -8,7 +8,6 @@ class ServerVersionNext extends ServerVersion22 {
         return array_merge(parent::getSupportedCommands(), array(
             /* remote server control commands */
             'info'                  => '\Predis\Commands\InfoV24x',
-            'object'                => '\Predis\Commands\DebugObject',
         ));
     }
 }