|
@@ -24,7 +24,7 @@ abstract class ServerProfile implements IServerProfile, IProcessingSupport
|
|
|
{
|
|
|
private static $profiles;
|
|
|
|
|
|
- private $registeredCommands;
|
|
|
+ private $commands;
|
|
|
private $processor;
|
|
|
|
|
|
/**
|
|
@@ -32,7 +32,7 @@ abstract class ServerProfile implements IServerProfile, IProcessingSupport
|
|
|
*/
|
|
|
public function __construct()
|
|
|
{
|
|
|
- $this->registeredCommands = $this->getSupportedCommands();
|
|
|
+ $this->commands = $this->getSupportedCommands();
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -143,7 +143,7 @@ abstract class ServerProfile implements IServerProfile, IProcessingSupport
|
|
|
*/
|
|
|
public function supportsCommand($command)
|
|
|
{
|
|
|
- return isset($this->registeredCommands[strtolower($command)]);
|
|
|
+ return isset($this->commands[strtolower($command)]);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -152,11 +152,11 @@ abstract class ServerProfile implements IServerProfile, IProcessingSupport
|
|
|
public function createCommand($method, $arguments = array())
|
|
|
{
|
|
|
$method = strtolower($method);
|
|
|
- if (!isset($this->registeredCommands[$method])) {
|
|
|
+ if (!isset($this->commands[$method])) {
|
|
|
throw new ClientException("'$method' is not a registered Redis command");
|
|
|
}
|
|
|
|
|
|
- $commandClass = $this->registeredCommands[$method];
|
|
|
+ $commandClass = $this->commands[$method];
|
|
|
$command = new $commandClass();
|
|
|
$command->setArguments($arguments);
|
|
|
|
|
@@ -191,7 +191,7 @@ abstract class ServerProfile implements IServerProfile, IProcessingSupport
|
|
|
if (!$commandReflection->isSubclassOf('\Predis\Commands\ICommand')) {
|
|
|
throw new ClientException("Cannot register '$command' as it is not a valid Redis command");
|
|
|
}
|
|
|
- $this->registeredCommands[strtolower($alias)] = $command;
|
|
|
+ $this->commands[strtolower($alias)] = $command;
|
|
|
}
|
|
|
|
|
|
/**
|