protected function removeCommand($command, array $arguments) { $key = array_search(array($command, $arguments), $this->commands); if ($key !== false) { unset($this->commands[$key]); } }