【发布时间】:2020-07-04 14:00:18
【问题描述】:
我的架构基于 Symfony 4.4 / ApiPLatform / Mercure / Angular 9。我通过在我的 resources.yaml ApiPlatform conf 文件中添加 mercure:true 从 Mercure 进行了简单的推送。现在我需要将更新设为私有。因此,对于 ApiPlatform,我必须添加参数 private:true。 但 API 响应现在是:
自 Mercure 0.10 起,目标不再存在。将更新标记为私有,或将 Mercure 组件降级到版本 0.3
这是我的 yaml 配置:
resources:
App\Entity\Order:
attributes:
mercure:
- private: true
- topics: ['object.getMercureTopics()']
正确的配置应该是什么?
【问题讨论】:
标签: symfony api-platform.com mercure