浏览代码

Remove Predis\Client::setConnection().

Daniele Alessandri 14 年之前
父节点
当前提交
c5169694ef
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      lib/Predis.php

+ 1 - 5
lib/Predis.php

@@ -15,7 +15,7 @@ class Client {
 
     public function __construct($parameters = null, $clientOptions = null) {
         $this->setupClient($clientOptions ?: new ClientOptions());
-        $this->setConnection($this->initializeConnection($parameters));
+        $this->_connection = $this->initializeConnection($parameters);
     }
 
     private function setupClient($options) {
@@ -94,10 +94,6 @@ class Client {
         return $connection;
     }
 
-    private function setConnection(IConnection $connection) {
-        $this->_connection = $connection;
-    }
-
     public function getProfile() {
         return $this->_profile;
     }