コード例 #1
0
ファイル: PluginList.php プロジェクト: Doability/magento2dev
 /**
  * @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;
 }
コード例 #2
0
ファイル: Config.php プロジェクト: opexsw/magento2
 /**
  * @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'];
     }
 }
コード例 #3
0
 /**
  * @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'];
     }
 }
コード例 #4
0
ファイル: Data.php プロジェクト: IlyaGluschenko/test001
 /**
  * @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);
 }
コード例 #5
0
ファイル: Config.php プロジェクト: aiesh/magento2
 /**
  * @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);
 }
コード例 #6
0
ファイル: Data.php プロジェクト: itmyprofession/M2_Sample
 /**
  * @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);
 }
コード例 #7
0
 /**
  * @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);
 }