Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
Processor Class Reference

Public Member Functions

 __construct (ConfigInterface $config, IndexerInterfaceFactory $indexerFactory, Indexer\CollectionFactory $indexersFactory, \Magento\Framework\Mview\ProcessorInterface $mviewProcessor)
 
 updateMview ()
 
 clearChangelog ()
 

Protected Attributes

 $config
 
 $indexerFactory
 
 $indexersFactory
 
 $mviewProcessor
 

Detailed Description

Definition at line 13 of file Processor.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( ConfigInterface  $config,
IndexerInterfaceFactory  $indexerFactory,
Indexer\CollectionFactory  $indexersFactory,
\Magento\Framework\Mview\ProcessorInterface  $mviewProcessor 
)
Parameters
ConfigInterface$config
IndexerInterfaceFactory$indexerFactory
Indexer\CollectionFactory$indexersFactory
\Magento\Framework\Mview\ProcessorInterface$mviewProcessor

Definition at line 41 of file Processor.php.

46  {
47  $this->config = $config;
48  $this->indexerFactory = $indexerFactory;
49  $this->indexersFactory = $indexersFactory;
50  $this->mviewProcessor = $mviewProcessor;
51  }

Member Function Documentation

◆ clearChangelog()

clearChangelog ( )

Clean indexer view changelogs

Returns
void

Definition at line 112 of file Processor.php.

113  {
114  $this->mviewProcessor->clearChangelog('indexer');
115  }

◆ updateMview()

updateMview ( )

Update indexer views

Returns
void

Definition at line 102 of file Processor.php.

103  {
104  $this->mviewProcessor->update('indexer');
105  }

Field Documentation

◆ $config

$config
protected

Definition at line 18 of file Processor.php.

◆ $indexerFactory

$indexerFactory
protected

Definition at line 23 of file Processor.php.

◆ $indexersFactory

$indexersFactory
protected

Definition at line 28 of file Processor.php.

◆ $mviewProcessor

$mviewProcessor
protected

Definition at line 33 of file Processor.php.


The documentation for this class was generated from the following file: