Skip to content

[2.8] Ability to inject security.access.decision_manager into voters #5306

Closed
@weaverryan

Description

@weaverryan

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, call isGranted('ROLE_ADMIN') from inside a custom voter without needing to do something like inject the container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Securitygood first issueIdeal for your first contribution! (some Symfony experience may be required)hasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions