Пример #1
0
 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory
  * @param array $searchModules
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory, array $searchModules = [])
 {
     $this->_searchModules = $searchModules;
     parent::__construct($context);
     $this->resultJsonFactory = $resultJsonFactory;
 }
Пример #2
0
 /**
  * Constructor
  *
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory)
 {
     $this->resultRedirectFactory = $resultRedirectFactory;
     parent::__construct($context);
 }
Пример #3
0
 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param array $searchModules
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, array $searchModules = array())
 {
     $this->_searchModules = $searchModules;
     parent::__construct($context);
 }