/** * @param \Magento\Backend\App\Action\Context $context * @param \Magento\Framework\Registry $registry * @param \Magento\Catalog\Model\ProductFactory $factory * @param \Psr\Log\LoggerInterface $logger */ public function __construct(Context $context, Registry $registry, ProductFactory $factory, LoggerInterface $logger) { $this->registry = $registry; $this->factory = $factory; $this->logger = $logger; parent::__construct($context); }
/** * Automapdatafields constructor. * * @param \Dotdigitalgroup\Email\Helper\Data $data * @param \Dotdigitalgroup\Email\Model\Connector\Datafield $datafield * @param \Magento\Backend\App\Action\Context $context */ public function __construct(\Dotdigitalgroup\Email\Helper\Data $data, \Dotdigitalgroup\Email\Model\Connector\Datafield $datafield, \Magento\Backend\App\Action\Context $context) { $this->data = $data; $this->datafield = $datafield; $this->messageManager = $context->getMessageManager(); parent::__construct($context); }
/** * Value constructor. * * @param \Dotdigitalgroup\Email\Model\Adminhtml\Source\Rules\Value $ruleValue * @param \Magento\Framework\Json\Encoder $jsonEncoder * @param \Magento\Backend\App\Action\Context $context * @param \Magento\Framework\App\Response\Http $http */ public function __construct(\Dotdigitalgroup\Email\Model\Adminhtml\Source\Rules\Value $ruleValue, \Magento\Framework\Json\Encoder $jsonEncoder, \Magento\Backend\App\Action\Context $context, \Magento\Framework\App\Response\Http $http) { $this->jsonEncoder = $jsonEncoder; $this->ruleValue = $ruleValue; $this->http = $http; parent::__construct($context); }
/** * @param \Magento\Backend\App\Action\Context $context * @param \Magento\Framework\Registry $registry * @param \Magento\Catalog\Model\ProductFactory $factory * @param \Magento\Framework\Logger $logger */ public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $registry, \Magento\Catalog\Model\ProductFactory $factory, \Magento\Framework\Logger $logger) { $this->registry = $registry; $this->factory = $factory; $this->logger = $logger; parent::__construct($context); }
public function __construct(Context $context, \Magento\Store\Model\StoreManagerInterface $storeManagerInterface, \Dotdigitalgroup\Email\Model\Rules $rules, \Magento\Framework\Logger\Monolog $monolog) { parent::__construct($context); $this->rules = $rules; $this->_storeManager = $storeManagerInterface; $this->logger = $monolog; }
/** * Check if current section is found and is allowed * * @param \Magento\Framework\App\RequestInterface $request * @return \Magento\Framework\App\ResponseInterface */ public function dispatch(\Magento\Framework\App\RequestInterface $request) { if (!$request->getParam('section')) { $request->setParam('section', $this->_configStructure->getFirstSection()->getId()); } return parent::dispatch($request); }
/** * @param \Magento\Backend\App\Action\Context $context * @param \Magento\Framework\Registry $coreRegistry * @param \Magento\User\Model\RoleFactory $roleFactory * @param \Magento\User\Model\UserFactory $userFactory * @param \Magento\User\Model\RulesFactory $rulesFactory * @param \Magento\Backend\Model\Auth\Session $authSession */ public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\User\Model\RoleFactory $roleFactory, \Magento\User\Model\UserFactory $userFactory, \Magento\User\Model\RulesFactory $rulesFactory, \Magento\Backend\Model\Auth\Session $authSession) { parent::__construct($context); $this->_coreRegistry = $coreRegistry; $this->_roleFactory = $roleFactory; $this->_userFactory = $userFactory; $this->_rulesFactory = $rulesFactory; $this->_authSession = $authSession; }
/** * Check if current section is found and is allowed * * @param \Magento\Framework\App\RequestInterface $request * @return \Magento\Framework\App\ResponseInterface */ public function dispatch(\Magento\Framework\App\RequestInterface $request) { $section = null; if (!$request->getParam('section')) { $section = $this->_configStructure->getFirstSection(); $request->setParam('section', $section->getId()); } else { $this->_isSectionAllowed($request->getParam('section')); } return parent::dispatch($request); }
/** * Index constructor. * * @param Context $context * @param PageFactory $resultPageFactory */ public function __construct(Context $context, PageFactory $resultPageFactory) { parent::__construct($context); $this->resultPageFactory = $resultPageFactory; }
/** * Initialize ListAction * * @param \Magento\Backend\App\Action\Context $context * @param \Magento\Framework\Json\Helper\Data $jsonHelper * @param \Magento\AdminNotification\Model\ResourceModel\System\Message\Collection $messageCollection */ public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Json\Helper\Data $jsonHelper, \Magento\AdminNotification\Model\ResourceModel\System\Message\Collection $messageCollection) { $this->jsonHelper = $jsonHelper; $this->messageCollection = $messageCollection; parent::__construct($context); }
/** * @param \Magento\Backend\App\Action\Context $context * @param \Magento\Backend\App\BackendAppList $backendAppList */ public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Backend\App\BackendAppList $backendAppList) { parent::__construct($context); $this->backendAppList = $backendAppList; }
public function _processUrlKeys() { $requestJsonBody = $this->getJsonBody(); if ($requestJsonBody !== null && array_key_exists(self::FORM_KEY, $requestJsonBody)) { $this->setJsonFormTokenOnMagentoRequest($requestJsonBody[self::FORM_KEY], $this->getRequest()); } return parent::_processUrlKeys(); }
public function __construct(Context $context, \Dotdigitalgroup\Email\Model\Rules $rules, \Magento\Framework\Registry $registry) { parent::__construct($context); $this->rules = $rules; $this->registry = $registry; }
/** * Check is allow modify system configuration * * @return bool */ protected function _isAllowed() { $sectionId = $this->_request->getParam('section'); return parent::_isAllowed() || $this->_configStructure->getElement($sectionId)->isAllowed(); }
/** * Wishlistsreset constructor. * * @param \Dotdigitalgroup\Email\Model\ResourceModel\WishlistFactory $wishlistFactory * @param \Magento\Backend\App\Action\Context $context */ public function __construct(\Dotdigitalgroup\Email\Model\ResourceModel\WishlistFactory $wishlistFactory, \Magento\Backend\App\Action\Context $context) { $this->wishlistFactory = $wishlistFactory; $this->messageManager = $context->getMessageManager(); parent::__construct($context); }
public function __construct(Context $context) { parent::__construct($context); }
public function __construct(Context $context, \Magento\Framework\App\Response\Http $http) { parent::__construct($context); $this->_http = $http; }
/** * Save constructor. * * @param \Magento\Backend\App\Action\Context $context * @param \Dotdigitalgroup\Email\Model\RulesFactory $rulesFactory * @param \Magento\Store\Model\StoreManagerInterface $storeManagerInterface */ public function __construct(\Magento\Backend\App\Action\Context $context, \Dotdigitalgroup\Email\Model\RulesFactory $rulesFactory, \Magento\Store\Model\StoreManagerInterface $storeManagerInterface) { parent::__construct($context); $this->ruleFactory = $rulesFactory; $this->storeManager = $storeManagerInterface; }
/** * Construct * * @param \Magento\Backend\App\Action\Context $context * @param \Magento\User\Model\UserFactory $userFactory */ public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\User\Model\UserFactory $userFactory) { parent::__construct($context); $this->_userFactory = $userFactory; }
public function __construct(\Magento\Backend\Model\Auth $auth, \Magento\Backend\App\Action\Context $context) { $this->_auth = $auth; parent::__construct($context); }
public function __construct(\Dotdigitalgroup\Email\Model\CronFactory $cronFactory, \Magento\Backend\App\Action\Context $context) { $this->_cronFactory = $cronFactory; $this->messageManager = $context->getMessageManager(); parent::__construct($context); }
/** * Index constructor. * * @param \Magento\Backend\App\Action\Context $context * @param \Magento\Framework\View\Result\PageFactory $resultPageFactory */ public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\View\Result\PageFactory $resultPageFactory) { parent::__construct($context); $this->resultPageFactory = $resultPageFactory; }