preference 不生效时先确认 area、接口与实际实例,再看配置合并和生成代码。反复清缓存往往只是浪费时间。
继续阅读Magento 2 写了 preference 却完全不生效,问题通常不在 cache
2025/7/28 下午3:22
alwayly
magento 2执行setup:di:compile报Cannot instantiate interface,应该先查哪个di.xml?
2025/9/10 下午3:18
alwayly
Cannot instantiate interface不是让你去修改接口,而是Object Manager没找到可用实现。先从报错参数、area作用域和模块加载顺序定位缺失的preference。
继续阅读

