Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
IndexerInfoCommand.php
Go to the documentation of this file.
1 <?php
7 
8 use Symfony\Component\Console\Input\InputInterface;
9 use Symfony\Component\Console\Output\OutputInterface;
10 
15 {
19  protected function configure()
20  {
21  $this->setName('indexer:info')->setDescription('Shows allowed Indexers');
22  }
23 
27  protected function execute(InputInterface $input, OutputInterface $output)
28  {
29  $indexers = $this->getAllIndexers();
30  foreach ($indexers as $indexer) {
31  $output->writeln(sprintf('%-40s %s', $indexer->getId(), $indexer->getTitle()));
32  }
33  }
34 }
execute(InputInterface $input, OutputInterface $output)