/** * @param ReaderInterface $reader * @param ScopeInterface $configScope * @param CacheInterface $cache * @param RelationsInterface $relations * @param ConfigInterface $omConfig * @param DefinitionInterface $definitions * @param ObjectManagerInterface $objectManager * @param ClassDefinitions $classDefinitions * @param array $scopePriorityScheme * @param string $cacheId * @SuppressWarnings(PHPMD.ExcessiveParameterList) */ public function __construct(ReaderInterface $reader, ScopeInterface $configScope, CacheInterface $cache, RelationsInterface $relations, ConfigInterface $omConfig, DefinitionInterface $definitions, ObjectManagerInterface $objectManager, ClassDefinitions $classDefinitions, array $scopePriorityScheme = ['global'], $cacheId = 'plugins') { parent::__construct($reader, $configScope, $cache, $cacheId); $this->_omConfig = $omConfig; $this->_relations = $relations; $this->_definitions = $definitions; $this->_classDefinitions = $classDefinitions; $this->_scopePriorityScheme = $scopePriorityScheme; $this->_objectManager = $objectManager; }
/** * @param Config\Reader $reader * @param \Magento\Framework\Config\ScopeInterface $configScope * @param \Magento\Framework\Config\CacheInterface $cache * @param \Magento\Framework\App\DeploymentConfig $deploymentConfig * @param string $cacheId * @throws \InvalidArgumentException */ public function __construct(Config\Reader $reader, \Magento\Framework\Config\ScopeInterface $configScope, \Magento\Framework\Config\CacheInterface $cache, \Magento\Framework\App\DeploymentConfig $deploymentConfig, $cacheId = 'resourcesCache') { parent::__construct($reader, $configScope, $cache, $cacheId); foreach ($deploymentConfig->getConfigData(ConfigOptionsList::KEY_RESOURCE) as $resourceName => $resourceData) { if (!isset($resourceData['connection'])) { throw new \InvalidArgumentException('Invalid initial resource configuration'); } $this->_connectionNames[$resourceName] = $resourceData['connection']; } }
/** * @param Config\Reader $reader * @param \Magento\Framework\Config\ScopeInterface $configScope * @param \Magento\Framework\Config\CacheInterface $cache * @param string $cacheId * @param array $initialResources * @throws \InvalidArgumentException */ public function __construct(Config\Reader $reader, \Magento\Framework\Config\ScopeInterface $configScope, \Magento\Framework\Config\CacheInterface $cache, $cacheId = 'resourcesCache', $initialResources = array()) { parent::__construct($reader, $configScope, $cache, $cacheId); foreach ($initialResources as $resourceName => $resourceData) { if (!isset($resourceData['connection'])) { throw new \InvalidArgumentException('Invalid initial resource configuration'); } $this->_connectionNames[$resourceName] = $resourceData['connection']; } }
/** * @param \Magento\Framework\Cache\Config\Reader $reader * @param \Magento\Framework\Config\ScopeInterface $configScope * @param \Magento\Framework\Config\CacheInterface $cache * @param string $cacheId */ public function __construct(\Magento\Framework\Cache\Config\Reader $reader, \Magento\Framework\Config\ScopeInterface $configScope, \Magento\Framework\Config\CacheInterface $cache, $cacheId) { parent::__construct($reader, $configScope, $cache, $cacheId); }
/** * @param \Magento\Index\Model\Indexer\Config\Reader $reader * @param \Magento\Framework\Config\ScopeInterface $configScope * @param \Magento\Framework\Config\CacheInterface $cache * @param string $cacheId */ public function __construct(\Magento\Index\Model\Indexer\Config\Reader $reader, \Magento\Framework\Config\ScopeInterface $configScope, \Magento\Framework\Config\CacheInterface $cache, $cacheId = 'indexerConfigCache') { parent::__construct($reader, $configScope, $cache, $cacheId); }
/** * @param Reader $reader * @param ScopeInterface $configScope * @param CacheInterface $cache * @param string $cacheId */ public function __construct(Reader $reader, ScopeInterface $configScope, CacheInterface $cache, $cacheId = 'sample_config_cache') { parent::__construct($reader, $configScope, $cache, $cacheId); }
/** * @param \Magento\Framework\Event\Config\Reader $reader * @param \Magento\Framework\Config\ScopeInterface $configScope * @param \Magento\Framework\Config\CacheInterface $cache * @param \Magento\Framework\App\State $appState * @param string $cacheId */ public function __construct(\Magento\Framework\Event\Config\Reader $reader, \Magento\Framework\Config\ScopeInterface $configScope, \Magento\Framework\Config\CacheInterface $cache, \Magento\Framework\App\State $appState, $cacheId = 'event_config_cache') { $this->_appState = $appState; parent::__construct($reader, $configScope, $cache, $cacheId); }