Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
GlobalAnalyzer.php
Go to the documentation of this file.
1 <?php
8 
9 use Symfony\Component\Console\Input\InputInterface;
10 use Symfony\Component\Console\Output\OutputInterface;
11 
15 class GlobalAnalyzer extends \Symfony\Component\Console\Command\Command
16 {
22  private $commandList;
23 
27  public function __construct(
28  $commandList
29  ) {
30  parent::__construct();
31  $this->commandList = $commandList;
32  }
33 
39  protected function configure()
40  {
41  parent::configure();
42  $this->setName('troubleshooting:check-all')
43  ->setDescription('Perform all available checks.');
44  }
45 
54  protected function execute(InputInterface $input, OutputInterface $output)
55  {
56  foreach ($this->commandList as $command) {
57  $command->execute($input, $output);
58  $output->writeln('');
59  }
60  }
61 }
execute(InputInterface $input, OutputInterface $output)