27 lines
693 B
PHP
27 lines
693 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace Esun\LegacyOrder\Controller\Account;
|
|
|
|
use Magento\Customer\Controller\AbstractAccount;
|
|
use Magento\Framework\App\Action\Context;
|
|
use Magento\Framework\App\Action\HttpGetActionInterface;
|
|
use Magento\Framework\View\Result\PageFactory;
|
|
|
|
class Index extends AbstractAccount implements HttpGetActionInterface
|
|
{
|
|
public function __construct(
|
|
Context $context,
|
|
private readonly PageFactory $pageFactory
|
|
) {
|
|
parent::__construct($context);
|
|
}
|
|
|
|
public function execute()
|
|
{
|
|
$page = $this->pageFactory->create();
|
|
$page->getConfig()->getTitle()->set(__('Historical Orders'));
|
|
return $page;
|
|
}
|
|
}
|