Magento2 Magento:2“;传递的参数必须是Customeractivation”;

Magento2 Magento:2“;传递的参数必须是Customeractivation”;,magento2,Magento2,我有一个模块,叫做“Customeractivation” 在“customeractivation”观察者文件中,我想调用“customeractivation”模块的helper类的一些方法。 但当我注入依赖项来构造方法时,我得到了以下错误。 传递的参数必须是Customeractivation的实例“尝试在低于2.2的magento版本中使用rm-rf var/generation/*命令删除旧生成的文件,并在magento根目录中对大于2.2的magento使用rm-rf generat

我有一个模块,叫做“Customeractivation”

在“customeractivation”观察者文件中,我想调用“customeractivation”模块的helper类的一些方法。 但当我注入依赖项来构造方法时,我得到了以下错误。
传递的参数必须是Customeractivation的实例“

尝试在低于2.2的magento版本中使用rm-rf var/generation/*命令删除旧生成的文件,并在magento根目录中对大于2.2的magento使用rm-rf generated/*命令