I am trying to extend the MagentoFrameworkAppActionHttpPostActionInterface class and my construct looks like this:
public function __construct(
MagentoFrameworkAppActionContext $context,
MagentoFrameworkViewResultPageFactory $pageFactory,
MagentoFrameworkMessageManagerInterface $messageManager,
MagentoFrameworkHTTPClientCurl $curl,
MagentoFrameworkFileUploaderFactory $uploaderFactory)
{
$this->_curl = $curl;
$this->messageManager = $messageManager;
$this->_pageFactory = $pageFactory;
$this->uploaderFactory = $uploaderFactory;
return parent::__construct($context);
}
I am getting an error though on this line return parent::__construct($context);
Cannot use ‘parent’ in a class with no parent.
How else should I write the return line then?