magento 2 Uncaught TypeError: Argument 1 passed to __construct() must be an instance of MagentoBackendBlockTemplateContext


magento 2 Uncaught TypeError: Argument 1 passed to __construct() must be an instance of MagentoBackendBlockTemplateContext



In Magento 2.2 i have create a module and there i am getting this error.



Uncaught TypeError: Argument 1 passed to __construct() must be an
instance of MagentoBackendBlockTemplateContext, instance of
MagentoFrameworkObjectManagerObjectManager given



My file path



appcodeNamespaceModulenameBlockAdminhtmlExporterEditTabForm.php


<?php
namespace NamespaceModulenameBlockAdminhtmlExporterEditTab;

class Form extends MagentoBackendBlockWidgetFormGeneric implements MagentoBackendBlockWidgetTabTabInterface
{
protected $exporter;

public function __construct(
MagentoBackendBlockTemplateContext $context,
MagentoFrameworkRegistry $registry,
MagentoFrameworkDataFormFactory $formFactory,
RaveinfosysOrderexporterModelExporter $exporter,
array $data =
) {
$this->exporter = $exporter;
$this->_formFactory = $formFactory;

parent::__construct($context, $registry, $formFactory, $data);
}



please suggest me where is mistake.



Thank you









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

api-platform.com Unable to generate an IRI for the item of type

How to set up datasource with Spring for HikariCP?

Display dokan vendor name on Woocommerce single product pages