Skip to content

Bug - Custom AccessDecisionManager not getting list of voters as first argument in __construct #41123

Closed
@SaliBhdr

Description

@SaliBhdr

Symfony version(s) affected: 5.2.*

Description
After I write my own AccessDecisionManager and extend it from the security bundle's Symfony\Component\Security\Core\Authorization\AccessDecisionManager, all voters logic were not working anymore. What I expect is to get $voters array as the first argument of __construct like the parent AccessDecisionManager.

How to reproduce
Make your Own AccessDecisionManager and add it to security.yaml :

    access_decision_manager:
        service: App\Security\AccessDecisionManager

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions