Ensure that commands are registered in server profiles using lowercase aliases.

This commit is contained in:
Daniele Alessandri
2011-10-02 23:16:04 +02:00
parent f1072f8344
commit 68dba4cb12
+1 -1
View File
@@ -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) {