Sfoglia il codice sorgente

Renamed Predis\Client::setServerProfile to Predis\Client::setProfile.

Daniele Alessandri 15 anni fa
parent
commit
2e5549b316
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      lib/Predis.php

+ 2 - 2
lib/Predis.php

@@ -15,7 +15,7 @@ class Client {
     private $_connection, $_serverProfile;
 
     public function __construct($parameters = null, RedisServerProfile $serverProfile = null) {
-        $this->setServerProfile(
+        $this->setProfile(
             $serverProfile === null 
                 ? RedisServerProfile::getDefault() 
                 : $serverProfile
@@ -84,7 +84,7 @@ class Client {
         $this->_connection = $connection;
     }
 
-    public function setServerProfile(RedisServerProfile $serverProfile) {
+    public function setProfile(RedisServerProfile $serverProfile) {
         $this->_serverProfile = $serverProfile;
     }