9 use Magento\Framework\Indexer\IndexerInterfaceFactory;
23 private $indexerFactory;
28 private $configInterface;
37 IndexerInterfaceFactory $indexerFactory,
40 $this->indexerFactory = $indexerFactory;
41 $this->configInterface = $configInterface;
49 foreach (array_keys($this->configInterface->getIndexers()) as $indexerId) {
50 $indexer = $this->indexerFactory->create()->load($indexerId);
52 $indexer->getView()->unsubscribe()->subscribe();
install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
__construct(IndexerInterfaceFactory $indexerFactory, ConfigInterface $configInterface)