Преглед изворни кода

Remove erroneous duplication of INFO in Redis profiles.

This oversight didn't end up in a blatant bug only because the correct
handler definition for INFO replaced the old class in the profile.
Daniele Alessandri пре 11 година
родитељ
комит
5065541cc6
2 измењених фајлова са 2 додато и 4 уклоњено
  1. 1 2
      lib/Predis/Profile/RedisVersion260.php
  2. 1 2
      lib/Predis/Profile/RedisVersion280.php

+ 1 - 2
lib/Predis/Profile/RedisVersion260.php

@@ -111,7 +111,7 @@ class RedisVersion260 extends RedisProfile
             'QUIT'                      => 'Predis\Command\ConnectionQuit',
 
             /* remote server control commands */
-            'INFO'                      => 'Predis\Command\ServerInfo',
+            'INFO'                      => 'Predis\Command\ServerInfoV26x',
             'SLAVEOF'                   => 'Predis\Command\ServerSlaveOf',
             'MONITOR'                   => 'Predis\Command\ServerMonitor',
             'DBSIZE'                    => 'Predis\Command\ServerDatabaseSize',
@@ -227,7 +227,6 @@ class RedisVersion260 extends RedisProfile
             'SCRIPT'                    => 'Predis\Command\ServerScript',
 
             /* remote server control commands */
-            'INFO'                      => 'Predis\Command\ServerInfoV26x',
             'TIME'                      => 'Predis\Command\ServerTime',
             'SENTINEL'                  => 'Predis\Command\ServerSentinel',
         );

+ 1 - 2
lib/Predis/Profile/RedisVersion280.php

@@ -111,7 +111,7 @@ class RedisVersion280 extends RedisProfile
             'QUIT'                      => 'Predis\Command\ConnectionQuit',
 
             /* remote server control commands */
-            'INFO'                      => 'Predis\Command\ServerInfo',
+            'INFO'                      => 'Predis\Command\ServerInfoV26x',
             'SLAVEOF'                   => 'Predis\Command\ServerSlaveOf',
             'MONITOR'                   => 'Predis\Command\ServerMonitor',
             'DBSIZE'                    => 'Predis\Command\ServerDatabaseSize',
@@ -227,7 +227,6 @@ class RedisVersion280 extends RedisProfile
             'SCRIPT'                    => 'Predis\Command\ServerScript',
 
             /* remote server control commands */
-            'INFO'                      => 'Predis\Command\ServerInfoV26x',
             'TIME'                      => 'Predis\Command\ServerTime',
             'SENTINEL'                  => 'Predis\Command\ServerSentinel',