Disque\Client::registerCommand PHP Method

registerCommand() public method

Register a command handler
public registerCommand ( Disque\Command\CommandInterface $commandHandler ) : void
$commandHandler Disque\Command\CommandInterface Command
return void
    public function registerCommand(CommandInterface $commandHandler)
    {
        $command = strtoupper($commandHandler->getCommand());
        $this->commandHandlers[$command] = $commandHandler;
    }