public function execute($name, $params = []) { $command = $this->get($name); if ($command === null) { throw new ExecutionException("Command [{$name}] is not registered."); } return $command->execute($params); }