mirror of
https://github.com/predis/predis.git
synced 2026-09-13 03:47:03 +00:00
Ensure that commands are registered in server profiles using lowercase aliases.
This commit is contained in:
@@ -99,7 +99,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[$alias] = $command;
|
||||
$this->_registeredCommands[strtolower($alias)] = $command;
|
||||
}
|
||||
|
||||
public function setProcessor(ICommandProcessor $processor) {
|
||||
|
||||
Reference in New Issue
Block a user