[2.8] Ability to inject security.access.decision_manager into voters #5306
Labels
good first issue
Ideal for your first contribution! (some Symfony experience may be required)
hasPR
A Pull Request has already been submitted for this issue.
Security
Milestone
See symfony/symfony#14733. The
security.access.decision_manager
can now be injected into voters, so we can document in the cookbook about custom voters how you could, for example, callisGranted('ROLE_ADMIN')
from inside a custom voter without needing to do something like inject the container.The text was updated successfully, but these errors were encountered: