我正在和我一起工作Magento 2
,我还是新手。我在控制器类中有这个构造函数:
public function __construct(Context $context, PageFactory $pageFactory, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig)
{
$this->pageFactory = $pageFactory;
$this->scopeConfig = $scopeConfig;
return parent::__construct($context);
}
在我添加 ScopeConfigInterface 之前它一直在工作。现在,当我加载我的页面时,我收到了这个错误:
Recoverable Error: Argument 3 passed to xxx\Customer\Controller\Login::__construct() must implement interface Magento\Framework\App\Config\ScopeConfigInterface, none given, called in...
有任何想法吗?谢谢。