public function unregister(CommandMap $commandMap) { if ($this->allowChangesFrom($commandMap)) { $this->commandMap = null; $this->activeAliases = $this->aliases; $this->label = $this->nextLabel; return true; } return false; }