私はと働いてい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...
何か案は?ありがとう。