/** * @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; }
/** * @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; }
/** * @param Context $context * @param Backend\DataStore|DataStore $dataStore * @param DefaultIntegration $integrationContext * @param JsonFactory $resultJsonFactory * @param LoggerInterface $logger * @param Backend\MagentoAPI|MagentoAPI $magentoAPI * @param RequestRouter $requestRouter */ public function __construct(Context $context, DataStore $dataStore, DefaultIntegration $integrationContext, JsonFactory $resultJsonFactory, LoggerInterface $logger, MagentoAPI $magentoAPI, RequestRouter $requestRouter) { $this->dataStore = $dataStore; $this->integrationContext = $integrationContext; $this->logger = $logger; $this->magentoAPI = $magentoAPI; $this->resultJsonFactory = $resultJsonFactory; $this->requestRouter = $requestRouter; $this->requestRouter->addRouter('\\CloudFlare\\Plugin\\Backend\\ClientAPI', ClientRoutes::$routes); $this->requestRouter->addRouter('\\CF\\API\\Plugin', PluginRoutes::getRoutes(\CF\API\PluginRoutes::$routes)); // php://input can only be read once $decodedJson = json_decode(file_get_contents('php://input'), true); if (json_last_error() !== 0) { $this->logger->error("Error decoding JSON: " . json_last_error_msg()); } $this->jsonBody = $decodedJson; parent::__construct($context); }
/** * Index constructor. * * @param Context $context * @param PageFactory $resultPageFactory */ public function __construct(Context $context, PageFactory $resultPageFactory) { parent::__construct($context); $this->resultPageFactory = $resultPageFactory; }
/** * @param \Magento\Backend\App\Action\Context $context * @param \Magento\Backend\Model\Config\Structure $configStructure */ public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Backend\Model\Config\Structure $configStructure) { parent::__construct($context); $this->_configStructure = $configStructure; }
/** * 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 __construct(Context $context, \Dotdigitalgroup\Email\Model\Rules $rules, \Magento\Framework\Registry $registry) { parent::__construct($context); $this->rules = $rules; $this->registry = $registry; }
/** * Class constructor * * @param Context $context Action context * @param Structure $configStructure Relevance configuration Structure * @param ConfigSectionChecker $sectionChecker Configuration Section Checker */ public function __construct(Context $context, Structure $configStructure, ConfigSectionChecker $sectionChecker) { parent::__construct($context); $this->configStructure = $configStructure; $this->sectionChecker = $sectionChecker; }
/** * 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); }
/** * @param \Magento\Backend\App\Action\Context $context * @param \Magento\Config\Model\Config\Structure $configStructure * @param ConfigSectionChecker $sectionChecker */ public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Config\Model\Config\Structure $configStructure, ConfigSectionChecker $sectionChecker) { parent::__construct($context); $this->_configStructure = $configStructure; $this->_sectionChecker = $sectionChecker; }
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; }