Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ReindexAllInvalid.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Indexer\Cron;
7 
9 {
13  protected $processor;
14 
18  public function __construct(
19  \Magento\Indexer\Model\Processor $processor
20  ) {
21  $this->processor = $processor;
22  }
23 
29  public function execute()
30  {
31  $this->processor->reindexAllInvalid();
32  }
33 }
__construct(\Magento\Indexer\Model\Processor $processor)