Example #1
0
 /**
  * Constructor
  *
  * @param Context $context
  * @param \Magento\Catalog\Helper\Product\View $viewHelper
  * @param \Magento\Framework\Controller\Result\ForwardFactory $resultForwardFactory
  * @param PageFactory $resultPageFactory
  */
 public function __construct(Context $context, \Magento\Catalog\Helper\Product\View $viewHelper, \Magento\Framework\Controller\Result\ForwardFactory $resultForwardFactory, PageFactory $resultPageFactory)
 {
     $this->viewHelper = $viewHelper;
     $this->resultForwardFactory = $resultForwardFactory;
     $this->resultPageFactory = $resultPageFactory;
     parent::__construct($context);
 }
Example #2
0
 /**
  * Constructor
  *
  * @param Context $context
  * @param Result\RedirectFactory $resultRedirectFactory
  * @param Result\ForwardFactory $resultForwardFactory
  * @param PageFactory $resultPageFactory
  */
 public function __construct(Context $context, Result\RedirectFactory $resultRedirectFactory, Result\ForwardFactory $resultForwardFactory, PageFactory $resultPageFactory)
 {
     $this->resultRedirectFactory = $resultRedirectFactory;
     $this->resultForwardFactory = $resultForwardFactory;
     $this->resultPageFactory = $resultPageFactory;
     parent::__construct($context);
 }