Esempio n. 1
0
 /**
  * @param \Magento\Customer\Model\Address\Config\Reader $reader
  * @param \Magento\Framework\Config\CacheInterface $cache
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Customer\Helper\Address $addressHelper
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param string $cacheId
  */
 public function __construct(\Magento\Customer\Model\Address\Config\Reader $reader, \Magento\Framework\Config\CacheInterface $cache, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Customer\Helper\Address $addressHelper, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, $cacheId = 'address_format')
 {
     parent::__construct($reader, $cache, $cacheId);
     $this->_storeManager = $storeManager;
     $this->_addressHelper = $addressHelper;
     $this->_scopeConfig = $scopeConfig;
 }
Esempio n. 2
0
 /**
  * Instanciate config.
  *
  * @param Reader                 $reader              Config file reader.
  * @param CacheInterface         $cache               Cache instance.
  * @param ObjectManagerInterface $objectManager       Object manager (used to instanciate several factories)
  * @param TypeFactory            $typeFactory         Index type factory.
  * @param MappingFactory         $mappingFactory      Index mapping factory.
  * @param MappingFieldFactory    $mappingFieldFactory Index mapping field factory.
  * @param string                 $cacheId             Default config cache id.
  */
 public function __construct(Reader $reader, CacheInterface $cache, ObjectManagerInterface $objectManager, TypeFactory $typeFactory, MappingFactory $mappingFactory, MappingFieldFactory $mappingFieldFactory, $cacheId = self::CACHE_ID)
 {
     $this->typeFactory = $typeFactory;
     $this->mappingFactory = $mappingFactory;
     $this->mappingFieldFactory = $mappingFieldFactory;
     $this->objectManager = $objectManager;
     parent::__construct($reader, $cache, $cacheId);
 }
Esempio n. 3
0
 /**
  * @param \Magento\Framework\Mview\Config\Reader $reader
  * @param \Magento\Framework\Config\CacheInterface $cache
  * @param \Magento\Framework\Mview\View\State\CollectionInterface $stateCollection
  * @param string $cacheId
  */
 public function __construct(\Magento\Framework\Mview\Config\Reader $reader, \Magento\Framework\Config\CacheInterface $cache, \Magento\Framework\Mview\View\State\CollectionInterface $stateCollection, $cacheId = 'mview_config')
 {
     $this->stateCollection = $stateCollection;
     $isCacheExists = $cache->test($cacheId);
     parent::__construct($reader, $cache, $cacheId);
     if (!$isCacheExists) {
         $this->deleteNonexistentStates();
     }
 }
Esempio n. 4
0
 /**
  * @param \Magento\Indexer\Model\Config\Reader $reader
  * @param \Magento\Framework\Config\CacheInterface $cache
  * @param \Magento\Indexer\Model\Resource\Indexer\State\Collection $stateCollection
  * @param string $cacheId
  */
 public function __construct(\Magento\Indexer\Model\Config\Reader $reader, \Magento\Framework\Config\CacheInterface $cache, \Magento\Indexer\Model\Resource\Indexer\State\Collection $stateCollection, $cacheId = 'indexer_config')
 {
     $this->stateCollection = $stateCollection;
     $isCacheExists = $cache->test($cacheId);
     parent::__construct($reader, $cache, $cacheId);
     if (!$isCacheExists) {
         $this->deleteNonexistentStates();
     }
 }
Esempio n. 5
0
 /**
  * Constructor.
  *
  * @param Reader                 $reader        Config file reader.
  * @param CacheInterface         $cache         Cache interface.
  * @param IndexSettingsInterface $indexSettings Index settings.
  * @param string                 $cacheId       Config cache id.
  */
 public function __construct(Reader $reader, CacheInterface $cache, IndexSettingsInterface $indexSettings, $cacheId = self::CACHE_ID)
 {
     parent::__construct($reader, $cache, $cacheId);
     $this->indexSettings = $indexSettings;
     $this->addMappings();
 }
Esempio n. 6
0
 /**
  * @param \Magento\Framework\Search\Request\Config\FilesystemReader $reader
  * @param \Magento\Framework\Config\CacheInterface $cache
  * @param string $cacheId
  */
 public function __construct(\Magento\Framework\Search\Request\Config\FilesystemReader $reader, \Magento\Framework\Config\CacheInterface $cache, $cacheId = self::CACHE_ID)
 {
     parent::__construct($reader, $cache, $cacheId);
 }
Esempio n. 7
0
 /**
  * Initialize dependencies.
  *
  * @param \Magento\Framework\Communication\Config\CompositeReader $reader
  * @param \Magento\Framework\Config\CacheInterface $cache
  * @param string $cacheId
  */
 public function __construct(\Magento\Framework\Communication\Config\CompositeReader $reader, \Magento\Framework\Config\CacheInterface $cache, $cacheId = 'communication_config_cache')
 {
     parent::__construct($reader, $cache, $cacheId);
 }
Esempio n. 8
0
 /**
  * @param \Magento\Catalog\Model\Attribute\Config\Reader $reader
  * @param \Magento\Framework\Config\CacheInterface $cache
  */
 public function __construct(\Magento\Catalog\Model\Attribute\Config\Reader $reader, \Magento\Framework\Config\CacheInterface $cache)
 {
     parent::__construct($reader, $cache, 'catalog_attributes');
 }
Esempio n. 9
0
 /**
  * @param Reader $reader
  * @param \Magento\Framework\Config\CacheInterface $cache
  */
 public function __construct(Reader $reader, \Magento\Framework\Config\CacheInterface $cache)
 {
     $this->cacheTags = [\Magento\Eav\Model\Entity\Attribute::CACHE_TAG];
     parent::__construct($reader, $cache, 'data_source');
 }
Esempio n. 10
0
 /**
  * @param \Magento\Framework\Config\ReaderInterface $reader
  * @param \Magento\Framework\Config\CacheInterface $cache
  * @param string $cacheId
  */
 public function __construct(\Magento\Framework\Config\ReaderInterface $reader, \Magento\Framework\Config\CacheInterface $cache, $cacheId = 'request_declaration')
 {
     parent::__construct($reader, $cache, $cacheId);
 }
Esempio n. 11
0
 /**
  * @param \Magento\Email\Model\Template\Config\Reader $reader
  * @param \Magento\Framework\Config\CacheInterface $cache
  */
 public function __construct(\Magento\Email\Model\Template\Config\Reader $reader, \Magento\Framework\Config\CacheInterface $cache)
 {
     parent::__construct($reader, $cache, 'email_templates');
 }
Esempio n. 12
0
 public function __construct(\Ktpl\Test\Model\Config\Reader $reader, \Magento\Framework\Config\CacheInterface $cache, $cacheId = 'ktpl_test_config')
 {
     parent::__construct($reader, $cache, $cacheId);
 }
Esempio n. 13
0
 /**
  * Constructor.
  *
  * @param Reader         $reader  Config file reader.
  * @param CacheInterface $cache   Cache instance.
  * @param string         $cacheId Default config cache id.
  */
 public function __construct(Reader $reader, CacheInterface $cache, $cacheId = self::CACHE_ID)
 {
     parent::__construct($reader, $cache, $cacheId);
 }
Esempio n. 14
0
 /**
  * Initialize dependencies.
  *
  * @param \Magento\Framework\Communication\Config\Reader\XmlReader $reader
  * @param \Magento\Framework\Config\CacheInterface $cache
  * @param \Magento\Framework\Communication\Config\Reader\EnvReader $envReader
  * @param string $cacheId
  */
 public function __construct(\Magento\Framework\Communication\Config\Reader\XmlReader $reader, \Magento\Framework\Config\CacheInterface $cache, \Magento\Framework\Communication\Config\Reader\EnvReader $envReader, $cacheId = 'communication_config_cache')
 {
     parent::__construct($reader, $cache, $cacheId);
     $this->merge($envReader->read());
 }
Esempio n. 15
0
 /**
  * @param \Magento\Catalog\Model\ProductOptions\Config\Reader $reader
  * @param \Magento\Framework\Config\CacheInterface $cache
  * @param string $cacheId
  */
 public function __construct(\Magento\Catalog\Model\ProductOptions\Config\Reader $reader, \Magento\Framework\Config\CacheInterface $cache, $cacheId = 'product_options_config')
 {
     parent::__construct($reader, $cache, $cacheId);
 }
Esempio n. 16
0
 /**
  * @param \Magento\Sales\Model\Config\Reader $reader
  * @param \Magento\Framework\Config\CacheInterface $cache
  * @param string $cacheId
  */
 public function __construct(\Magento\Sales\Model\Config\Reader $reader, \Magento\Framework\Config\CacheInterface $cache, $cacheId = 'sales_totals_config_cache')
 {
     parent::__construct($reader, $cache, $cacheId);
 }
Esempio n. 17
0
 /**
  * @param \Magento\Cron\Model\Groups\Config\Reader\Xml $reader
  * @param \Magento\Framework\Config\CacheInterface $cache
  * @param string $cacheId
  */
 public function __construct(\Magento\Cron\Model\Groups\Config\Reader\Xml $reader, \Magento\Framework\Config\CacheInterface $cache, $cacheId = 'cron_groups_config_cache')
 {
     parent::__construct($reader, $cache, $cacheId);
 }
Esempio n. 18
0
 /**
  * Initialize parameters
  *
  * @param \Magento\Cron\Model\Config\Reader\Xml $reader
  * @param \Magento\Framework\Config\CacheInterface        $cache
  * @param \Magento\Cron\Model\Config\Reader\Db  $dbReader
  * @param string                               $cacheId
  */
 public function __construct(\Magento\Cron\Model\Config\Reader\Xml $reader, \Magento\Framework\Config\CacheInterface $cache, \Magento\Cron\Model\Config\Reader\Db $dbReader, $cacheId = 'crontab_config_cache')
 {
     parent::__construct($reader, $cache, $cacheId);
     $this->merge($dbReader->get());
 }
Esempio n. 19
0
 /**
  * @param \Magento\ImportExport\Model\Export\Config\Reader $reader
  * @param \Magento\Framework\Config\CacheInterface $cache
  * @param string $cacheId
  */
 public function __construct(\Magento\ImportExport\Model\Export\Config\Reader $reader, \Magento\Framework\Config\CacheInterface $cache, $cacheId = 'export_config_cache')
 {
     parent::__construct($reader, $cache, $cacheId);
 }
Esempio n. 20
0
 /**
  * @param \Magento\Directory\Model\Country\Postcode\Config\Reader $reader
  * @param \Magento\Framework\Config\CacheInterface $cache
  */
 public function __construct(\Magento\Directory\Model\Country\Postcode\Config\Reader $reader, \Magento\Framework\Config\CacheInterface $cache)
 {
     parent::__construct($reader, $cache, 'country_postcodes');
 }
Esempio n. 21
0
 public function __construct(\Firebear\ImportExport\Model\Source\Config\Reader $reader, \Magento\Framework\Config\CacheInterface $cache, $cacheId = 'firebear_importexport_config')
 {
     parent::__construct($reader, $cache, $cacheId);
 }
Esempio n. 22
0
 /**
  * @param \Magento\Eav\Model\Entity\Attribute\Config\Reader $reader
  * @param \Magento\Framework\Config\CacheInterface $cache
  * @param string $cacheId
  * @codeCoverageIgnore
  */
 public function __construct(\Magento\Eav\Model\Entity\Attribute\Config\Reader $reader, \Magento\Framework\Config\CacheInterface $cache, $cacheId = "eav_attributes")
 {
     parent::__construct($reader, $cache, $cacheId);
 }
Esempio n. 23
0
 /**
  * Constructor
  *
  * @param \Magento\Framework\Search\SearchEngine\Config\Reader $reader
  * @param \Magento\Framework\Config\CacheInterface $cache
  * @param string $cacheId
  */
 public function __construct(\Magento\Framework\Search\SearchEngine\Config\Reader $reader, \Magento\Framework\Config\CacheInterface $cache, $cacheId = 'search_engine_config_cache')
 {
     parent::__construct($reader, $cache, $cacheId);
 }