最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

symfony - How to partially define YAML config in Bundle B for Bundle A? - Stack Overflow

programmeradmin3浏览0评论

I am developing two bundles: Bundle A - Defines a custom annotation #[RoleChecker] which secures an endpoint with the given role in the YAML:

endpoint_name:
  role: ROLE_ADMIN

Bundle B - Which uses #[RoleChecker] to secure a few endpoints that it provides.

What would be the best way to require the needed endpoints in bundle B, in bundle A's configuration?

I tried to let bundle B define the endpoints in its own config, but this leads to duplication and I think bundle A should handle it

发布评论

评论列表(0)

  1. 暂无评论