magento2-docker/app/code/IpSupply/QuoteIn/Controller/Index/Index.php

51 lines
1.4 KiB
PHP
Executable File

<?php
namespace IpSupply\QuoteIn\Controller\Index;
use Magento\Framework\Translate\Inline\StateInterface;
use Magento\Framework\Escaper;
use Magento\Framework\Mail\Template\TransportBuilder;
use Magento\Framework\App\Action\Context;
use Magento\Framework\View\Result\PageFactory;
use Magento\Framework\Controller\ResultFactory;
class Index extends \Magento\Framework\App\Action\Action {
protected $pageFactory;
protected $_messageManager;
protected $resultFactory;
protected $inlineTranslation;
protected $escaper;
protected $transportBuilder;
protected $logger;
public function __construct(
Context $context,
PageFactory $pageFactory,
\Magento\Framework\Message\ManagerInterface $messageManager,
StateInterface $inlineTranslation,
Escaper $escaper,
TransportBuilder $transportBuilder,
\Magento\Framework\App\Helper\Context $helperContext
)
{
$this->pageFactory = $pageFactory;
$this->messageManager = $messageManager;
$this->resultFactory = $context->getResultFactory();
$this->inlineTranslation = $inlineTranslation;
$this->escaper = $escaper;
$this->transportBuilder = $transportBuilder;
$this->logger = $helperContext->getLogger();
parent::__construct($context);
}
public function execute()
{
return $this->pageFactory->create();
}
}