/** * @param \Magento\Framework\App\Action\Context $context * @param \Magento\Framework\Mail\Template\TransportBuilder $transportBuilder * @param \Magento\Framework\Translate\Inline\StateInterface $inlineTranslation * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig * @param \Magento\Store\Model\StoreManagerInterface $storeManager */ public function __construct(\Magento\Framework\App\Action\Context $context, \Magento\Framework\Mail\Template\TransportBuilder $transportBuilder, \Magento\Framework\Translate\Inline\StateInterface $inlineTranslation, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Escaper $escaper) { $this->_transportBuilder = $transportBuilder; $this->inlineTranslation = $inlineTranslation; $this->scopeConfig = $scopeConfig; $this->storeManager = $storeManager; $this->_escaper = $escaper; $this->messageManager = $context->getMessageManager(); }
/** * @param Context $context */ public function __construct(Context $context) { parent::__construct($context->getRequest(), $context->getResponse()); $this->_objectManager = $context->getObjectManager(); $this->_eventManager = $context->getEventManager(); $this->_url = $context->getUrl(); $this->_actionFlag = $context->getActionFlag(); $this->_redirect = $context->getRedirect(); $this->_view = $context->getView(); $this->messageManager = $context->getMessageManager(); }
public function __construct(\Magento\Framework\App\Action\Context $context, \Magento\Checkout\Model\CartFactory $cartModel, \Magento\Framework\ObjectManagerInterface $objectInterface, \Magento\Checkout\Model\Session $checkoutSession, \Rejoiner\Acr\Helper\Data $rejoinerHelper, \Magento\CatalogInventory\Model\ResourceModel\Stock\ItemFactory $stockItem, \Magento\CatalogInventory\Api\Data\StockItemInterfaceFactory $stockItemFactory, \Magento\Store\Model\StoreManagerInterface $storeManagerInterface, \Magento\Catalog\Model\ProductFactory $product) { $this->_checkoutSession = $checkoutSession; $this->_objectInterface = $objectInterface; $this->_rejoinerHelper = $rejoinerHelper; $this->_stockItemFactory = $stockItemFactory; $this->_cartModel = $cartModel; $this->_stockItem = $stockItem; $this->_storeManagerInterface = $storeManagerInterface; $this->_product = $product; $this->_messageManager = $context->getMessageManager(); parent::__construct($context); }