Bläddra i källkod

Make Predis\Client::setProfile() private.

Daniele Alessandri 14 år sedan
förälder
incheckning
b202e6cae7
2 ändrade filer med 3 tillägg och 1 borttagningar
  1. 2 0
      CHANGELOG
  2. 1 1
      lib/Predis.php

+ 2 - 0
CHANGELOG

@@ -11,6 +11,8 @@ v0.7.0 (2010-xx-xx)
       - Predis\Client::rawCommand()
         This method was removed due to interface inconsistencies with the 
         underlying connection class used internally by the client instance.
+      - Predis\Client::setProfile()
+        This method is no more part of the public API and has been made private.
 
   * The Predis\MultiBulkCommand class has been merged into Predis\Command and 
     thus removed. If you have code that extends Predis\MultiBulkCommand but 

+ 1 - 1
lib/Predis.php

@@ -132,7 +132,7 @@ class Client {
         $this->_connection = $connection;
     }
 
-    public function setProfile($serverProfile) {
+    private function setProfile($serverProfile) {
         if (!($serverProfile instanceof RedisServerProfile || is_string($serverProfile))) {
             throw new \InvalidArgumentException(
                 "Invalid type for server profile, \Predis\RedisServerProfile or string expected"