Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
RecurringData.php
Go to the documentation of this file.
1 <?php
7 namespace Magento\Theme\Setup;
8 
15 
20 {
26  private $themeRegistration;
27 
31  private $indexerRegistry;
32 
39  public function __construct(Registration $themeRegistration, IndexerRegistry $indexerRegistry)
40  {
41  $this->themeRegistration = $themeRegistration;
42  $this->indexerRegistry = $indexerRegistry;
43  }
44 
49  {
50  $indexer = $this->indexerRegistry->get(Config::DESIGN_CONFIG_GRID_INDEXER_ID);
51  $indexer->reindexAll();
52  $this->themeRegistration->register();
53  }
54 }
install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
__construct(Registration $themeRegistration, IndexerRegistry $indexerRegistry)
$themeRegistration
Definition: theme.php:88
$setup
Definition: trigger.php:12