소스 검색

Moved the initialization of the default \Predis\ResponseReader instance.

Daniele Alessandri 15 년 전
부모
커밋
8ae5197a38
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

@@ -30,7 +30,6 @@ class Client {
     private $_options, $_connection, $_serverProfile, $_responseReader;
 
     public function __construct($parameters = null, $clientOptions = null) {
-        $this->_responseReader = new ResponseReader();
         $this->setupClient($clientOptions ?: new ClientOptions());
         $this->setupConnection($parameters);
     }
@@ -75,6 +74,7 @@ class Client {
     }
 
     private function setupClient($options) {
+        $this->_responseReader = new ResponseReader();
         $this->_options = self::filterClientOptions($options);
 
         $this->setProfile($this->_options->profile);