public function registerCommand(CommandInterface $commandHandler) { $command = strtoupper($commandHandler->getCommand()); $this->commandHandlers[$command] = $commandHandler; }