public function unregisterCommand($command)
    {
        if (! array_key_exists($command, $this->commands)) {
            throw new \Exception("A command with the name {$command} does not exist.");
        }

        unset($this->commands[$command]);
    }
public function unregisterCommand($command)
    {
        if (! array_key_exists($command, $this->commands)) {
            throw new \Exception("A command with the name {$command} does not exist.");
        }

        unset($this->commands[$command]);
    }
public function unregisterCommand ( $ command ) { if ( ! array_key_exists ( $ command , $ this -> commands ) ) { throw new \ Exception ( "A command with the name {$command} does not exist." ) ; } unset ( $ this -> commands [ $ command ] ) ; }
Unregisters a command.

@param string $command The command name.
Unregisters a command .