Browse Source

Add static method Predis\RedisServerProfile::getDevelopment() to create a new instance of the 'dev' server profile.

Daniele Alessandri 15 năm trước cách đây
mục cha
commit
316d3de10e
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      lib/Predis.php

+ 4 - 0
lib/Predis.php

@@ -1336,6 +1336,10 @@ abstract class RedisServerProfile {
         return self::get('default');
     }
 
+    public static function getDevelopment() {
+        return self::get('dev');
+    }
+
     private static function predisServerProfiles() {
         return array(
             '1.2'     => '\Predis\RedisServer_v1_2',