mirror of
https://github.com/predis/predis.git
synced 2026-08-31 12:43:31 +00:00
Remove Predis\Client::setConnection().
This commit is contained in:
+1
-5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user