Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DailyCatalogUpdate.php
Go to the documentation of this file.
1 <?php
8 
10 {
15 
19  public function __construct(\Magento\CatalogRule\Model\Indexer\Rule\RuleProductProcessor $ruleProductProcessor)
20  {
21  $this->ruleProductProcessor = $ruleProductProcessor;
22  }
23 
32  public function execute()
33  {
34  $this->ruleProductProcessor->markIndexerAsInvalid();
35  }
36 }
__construct(\Magento\CatalogRule\Model\Indexer\Rule\RuleProductProcessor $ruleProductProcessor)