setDescription('Dump the server info.')->addArgument('type', InputArgument::REQUIRED); } protected function execute(InputInterface $input, OutputInterface $output): int { $type = $input->getArgument('type'); if (! $this->info->has($type)) { $output->writeln(sprintf('Error Info type [%s] not exist.', $type)); return 0; } $adapter = $this->info->get($type); $adapter->execute($input, $output); return 0; } }