View.php 986 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace Smartwave\Dailydeals\Controller\Deal;
  3. use Magento\Framework\View\Result\PageFactory;
  4. use Magento\Framework\App\Action\Context;
  5. class View extends \Magento\Framework\App\Action\Action
  6. {
  7. protected $pageFactory;
  8. protected $resultRedirectFactory;
  9. protected $scopeConfig;
  10. public function __construct(
  11. Context $context,
  12. PageFactory $pageFactory,
  13. \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory,
  14. \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  15. ) {
  16. $this->pageFactory = $pageFactory;
  17. $this->resultRedirectFactory=$resultRedirectFactory;
  18. $this->scopeConfig=$scopeConfig;
  19. return parent::__construct($context);
  20. }
  21. public function execute()
  22. {
  23. $storeScope = \Magento\Store\Model\ScopeInterface::SCOPE_STORE;
  24. $page_object = $this->pageFactory->create();
  25. return $page_object;
  26. }
  27. }