Skip to content

Commit

Permalink
Return a standard page response
Browse files Browse the repository at this point in the history
  • Loading branch information
markshust committed Oct 5, 2023
1 parent 0869108 commit 20ff359
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Controller/Index/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@
namespace Macademy\Jumpstart\Controller\Index;

use Magento\Framework\App\Action\HttpGetActionInterface;
use Magento\Framework\View\Result\Page;
use Magento\Framework\View\Result\PageFactory;

class Index implements HttpGetActionInterface
{
public function execute()
public function __construct(
private PageFactory $pageFactory,
) {}

public function execute(): Page
{
die('Jumpstart!');
return $this->pageFactory->create();
}
}

0 comments on commit 20ff359

Please sign in to comment.