1

私はと働いてい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...

何か案は?ありがとう。

4

1 に答える 1