Thanks to visit codestin.com
Credit goes to github.com

Skip to content

AccessDecisionManager can not be injected into Voter anymore #18554

Closed
@gharlan

Description

@gharlan

http://symfony.com/doc/master/cookbook/security/voters.html#checking-for-roles-inside-a-voter

This works with current release (3.0.4), but not with current master.
I get this error:

[Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException]

Circular reference detected for service "debug.security.access.decision_manager", path: "debug.security.access.decision_manager".

Reproducible by this branch of symfony-standard:
https://github.com/gharlan/symfony-standard/tree/voter-with-decision-manager

You can see the error in composer install (ScriptHandler::clearCache).

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