mirror of
https://github.com/predis/predis.git
synced 2026-08-24 13:59:23 +00:00
Changed the name of Predis\Client::createCommandInstance into Predis\Client::createCommand.
This commit is contained in:
+7
-7
@@ -67,12 +67,12 @@ class Client {
|
||||
$connection = new Connection($params);
|
||||
|
||||
if ($params->password !== null) {
|
||||
$connection->pushInitCommand($this->createCommandInstance(
|
||||
$connection->pushInitCommand($this->createCommand(
|
||||
'auth', array($params->password)
|
||||
));
|
||||
}
|
||||
if ($params->database !== null) {
|
||||
$connection->pushInitCommand($this->createCommandInstance(
|
||||
$connection->pushInitCommand($this->createCommand(
|
||||
'select', array($params->database)
|
||||
));
|
||||
}
|
||||
@@ -105,12 +105,12 @@ class Client {
|
||||
}
|
||||
|
||||
public function __call($method, $arguments) {
|
||||
$command = $this->createCommandInstance($method, $arguments);
|
||||
$command = $this->createCommand($method, $arguments);
|
||||
return $this->executeCommand($command);
|
||||
}
|
||||
|
||||
public function createCommandInstance($method, $arguments = array()) {
|
||||
return $this->_serverProfile->createCommandInstance($method, $arguments);
|
||||
public function createCommand($method, $arguments = array()) {
|
||||
return $this->_serverProfile->createCommand($method, $arguments);
|
||||
}
|
||||
|
||||
private function executeCommandInternal(IConnection $connection, Command $command) {
|
||||
@@ -382,7 +382,7 @@ class CommandPipeline {
|
||||
}
|
||||
|
||||
public function __call($method, $arguments) {
|
||||
$command = $this->_redisClient->createCommandInstance($method, $arguments);
|
||||
$command = $this->_redisClient->createCommand($method, $arguments);
|
||||
$this->recordCommand($command);
|
||||
}
|
||||
|
||||
@@ -683,7 +683,7 @@ abstract class RedisServerProfile {
|
||||
return new $defaultProfile();
|
||||
}
|
||||
|
||||
public function createCommandInstance($method, $arguments = array()) {
|
||||
public function createCommand($method, $arguments = array()) {
|
||||
$commandClass = $this->_registeredCommands[$method];
|
||||
|
||||
if ($commandClass === null) {
|
||||
|
||||
Reference in New Issue
Block a user