commandList = $commandList; } /** * Configure command. * * @return void */ protected function configure() { parent::configure(); $this->setName('troubleshooting:check-all') ->setDescription('Perform all available checks.'); } /** * Execute command. * * @param InputInterface $input * @param OutputInterface $output * @return void * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ protected function execute(InputInterface $input, OutputInterface $output) { foreach ($this->commandList as $command) { $command->execute($input, $output); $output->writeln(''); } } }