/** * @param \Magento\Backend\App\Action\Context $context * @param \Magento\Backend\Model\Config\Structure $configStructure * @param \Magento\Backend\Controller\Adminhtml\System\ConfigSectionChecker $sectionChecker * @param \Magento\Backend\Model\Config\Factory $configFactory * @param \Magento\Framework\Cache\FrontendInterface $cache * @param \Magento\Framework\Stdlib\String $string */ public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Backend\Model\Config\Structure $configStructure, \Magento\Backend\Controller\Adminhtml\System\ConfigSectionChecker $sectionChecker, \Magento\Backend\Model\Config\Factory $configFactory, \Magento\Framework\Cache\FrontendInterface $cache, \Magento\Framework\Stdlib\String $string) { parent::__construct($context, $configStructure, $sectionChecker); $this->_configFactory = $configFactory; $this->_cache = $cache; $this->string = $string; }
/** * @param \Magento\Backend\App\Action\Context $context * @param \Magento\Backend\Model\Config\Structure $configStructure * @param \Magento\Backend\Model\Config\Factory $configFactory * @param \Magento\Framework\Cache\FrontendInterface $cache * @param \Magento\Framework\Stdlib\String $string */ public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Backend\Model\Config\Structure $configStructure, \Magento\Backend\Model\Config\Factory $configFactory, \Magento\Framework\Cache\FrontendInterface $cache, \Magento\Framework\Stdlib\String $string) { parent::__construct($context, $configStructure); $this->_configFactory = $configFactory; $this->_cache = $cache; $this->string = $string; }
/** * Sets scope for backend config * * @param string $sectionId * @return bool */ protected function isSectionAllowed($sectionId) { $website = $this->getRequest()->getParam('website'); $store = $this->getRequest()->getParam('store'); if ($store) { $this->_backendConfig->setStore($store); } elseif ($website) { $this->_backendConfig->setWebsite($website); } return parent::isSectionAllowed($sectionId); }
/** * @param \Magento\Backend\App\Action\Context $context * @param \Magento\Backend\Model\Config\Structure $configStructure * @param \Magento\Framework\App\Response\Http\FileFactory $fileFactory * @param \Magento\Store\Model\StoreManagerInterface $storeManager */ public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Backend\Model\Config\Structure $configStructure, \Magento\Framework\App\Response\Http\FileFactory $fileFactory, \Magento\Store\Model\StoreManagerInterface $storeManager) { $this->_storeManager = $storeManager; $this->_fileFactory = $fileFactory; parent::__construct($context, $configStructure); }