Cron 或 CLI 抛出 Area code is not set,判断代码是否需要前台区域,并正确设置或模拟 area。
继续阅读Area code is not set 出现在 Cron:命令行代码少了哪一步初始化
2025/2/11 上午9:17
alwayly
Magento 2 自定义 CLI 报 Area code is not set,应该在哪里设置?
2024/9/20 上午11:21
alwayly
Area code is not set 说明代码过早使用了依赖区域配置的服务,设置位置应靠近命令执行边界。
继续阅读

