public function unregister($name)
    {
        unset($this->handlers[$name]);

        if ($name === $this->selectedHandler) {
            reset($this->handlers);
            $this->selectedHandler = key($this->handlers);
        }
    }
public function unregister($name)
    {
        unset($this->handlers[$name]);

        if ($name === $this->selectedHandler) {
            reset($this->handlers);
            $this->selectedHandler = key($this->handlers);
        }
    }
public function unregister ( $ name ) { unset ( $ this -> handlers [ $ name ] ) ; if ( $ name === $ this -> selectedHandler ) { reset ( $ this -> handlers ) ; $ this -> selectedHandler = key ( $ this -> handlers ) ; } }
Unregisters the command handler for the given name.

@param string $name The handler name.
Unregisters the command handler for the given name .