Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ReindexDefaultStock.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
12 
17 {
21  private $defaultStockProvider;
22 
26  private $stockIndexer;
27 
32  public function __construct(
33  DefaultStockProviderInterface $defaultStockProvider,
34  StockIndexer $stockIndexer
35  ) {
36  $this->defaultStockProvider = $defaultStockProvider;
37  $this->stockIndexer = $stockIndexer;
38  }
39 
45  public function execute()
46  {
47  //$this->stockIndexer->executeRow($this->defaultStockProvider->getId());
48  }
49 }
__construct(DefaultStockProviderInterface $defaultStockProvider, StockIndexer $stockIndexer)