public function register(CommandMap $commandMap) { if ($this->allowChangesFrom($commandMap)) { $this->commandMap = $commandMap; return true; } return false; }