Skip to content

Commit

Permalink
Implement new controller interface for Magento 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Quazz authored Sep 8, 2020
1 parent fec0a41 commit 8eecc81
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Controller/Index/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

namespace Magefox\GoogleShopping\Controller\Index;

class Index extends \Magento\Framework\App\Action\Action
use Magefox\GoogleShopping\Model\Xmlfeed;
use Magento\Framework\App\ActionInterface;
use Magefox\GoogleShopping\Helper\Data;
use Magento\Framework\Controller\Result\ForwardFactory;

class Index implements ActionInterface
{
/**
* XmlFeed Model
Expand All @@ -26,15 +31,13 @@ class Index extends \Magento\Framework\App\Action\Action
private $resultForward;

public function __construct(
\Magento\Framework\App\Action\Context $context,
\Magefox\GoogleShopping\Model\Xmlfeed $xmlFeed,
\Magefox\GoogleShopping\Helper\Data $helper,
\Magento\Framework\Controller\Result\ForwardFactory $resultForwardFactory
Xmlfeed $xmlFeed,
Data $helper,
ForwardFactory $resultForwardFactory
) {
$this->xmlFeed = $xmlFeed;
$this->helper = $helper;
$this->resultForwardFactory = $resultForwardFactory;
parent::__construct($context);
}

public function execute()
Expand Down

0 comments on commit 8eecc81

Please sign in to comment.