Просмотр исходного кода

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

Daniele Alessandri 15 лет назад
Родитель
Сommit
2e5549b316
1 измененных файлов с 2 добавлено и 2 удалено
  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;
     }