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