Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AbstractValue.php
Go to the documentation of this file.
1 <?php
11 
12 abstract class AbstractValue extends \Magento\Framework\App\Config\Value
13 {
17  protected $stockIndex;
18 
23 
35  public function __construct(
36  \Magento\Framework\Model\Context $context,
37  \Magento\Framework\Registry $registry,
38  \Magento\Framework\App\Config\ScopeConfigInterface $config,
39  \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList,
40  \Magento\CatalogInventory\Api\StockIndexInterface $stockIndex,
41  \Magento\CatalogInventory\Model\Indexer\Stock\Processor $stockIndexerProcessor,
42  \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null,
43  \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null,
44  array $data = []
45  ) {
46  $this->_stockIndexerProcessor = $stockIndexerProcessor;
47  $this->stockIndex = $stockIndex;
48  parent::__construct($context, $registry, $config, $cacheTypeList, $resource, $resourceCollection, $data);
49  }
50 }
__construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\App\Config\ScopeConfigInterface $config, \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList, \Magento\CatalogInventory\Api\StockIndexInterface $stockIndex, \Magento\CatalogInventory\Model\Indexer\Stock\Processor $stockIndexerProcessor, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[])
$config
Definition: fraud_order.php:17
$resource
Definition: bulk.php:12