فهرست منبع

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 12 سال پیش
والد
کامیت
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',