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

This commit is contained in:
Daniele Alessandri
2010-04-21 21:32:19 +02:00
parent b662b36e95
commit 8ae5197a38
+1 -1
View File
@@ -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);