{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/18554","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/18554/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/18554/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/18554/events","html_url":"https://github.com/symfony/symfony/issues/18554","id":148603657,"number":18554,"title":"AccessDecisionManager can not be injected into Voter anymore","user":{"login":"gharlan","id":330436,"avatar_url":"https://avatars.githubusercontent.com/u/330436?v=3","gravatar_id":"","url":"https://api.github.com/users/gharlan","html_url":"https://github.com/gharlan","followers_url":"https://api.github.com/users/gharlan/followers","following_url":"https://api.github.com/users/gharlan/following{/other_user}","gists_url":"https://api.github.com/users/gharlan/gists{/gist_id}","starred_url":"https://api.github.com/users/gharlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gharlan/subscriptions","organizations_url":"https://api.github.com/users/gharlan/orgs","repos_url":"https://api.github.com/users/gharlan/repos","events_url":"https://api.github.com/users/gharlan/events{/privacy}","received_events_url":"https://api.github.com/users/gharlan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/BC%20Break","name":"BC Break","color":"e10c02"},{"url":"https://api.github.com/repos/symfony/symfony/labels/Bug","name":"Bug","color":"e10c02"},{"url":"https://api.github.com/repos/symfony/symfony/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-04-15T09:07:50Z","updated_at":"2016-04-20T14:54:37Z","closed_at":null,"body":"http://symfony.com/doc/master/cookbook/security/voters.html#checking-for-roles-inside-a-voter\r\n\r\nThis works with current release (3.0.4), but not with current master.\r\nI get this error:\r\n\r\n> [Symfony\\Component\\DependencyInjection\\Exception\\ServiceCircularReferenceException]\r\n>\r\n>  Circular reference detected for service \"debug.security.access.decision_manager\", path: \"debug.security.access.decision_manager\".\r\n\r\nReproducible by this branch of symfony-standard:\r\nhttps://github.com/gharlan/symfony-standard/tree/voter-with-decision-manager\r\n\r\nYou can see the error in `composer install` (ScriptHandler::clearCache)."},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/212460154","html_url":"https://github.com/symfony/symfony/issues/18554#issuecomment-212460154","issue_url":"https://api.github.com/repos/symfony/symfony/issues/18554","id":212460154,"user":{"login":"JHGitty","id":5406438,"avatar_url":"https://avatars.githubusercontent.com/u/5406438?v=3","gravatar_id":"","url":"https://api.github.com/users/JHGitty","html_url":"https://github.com/JHGitty","followers_url":"https://api.github.com/users/JHGitty/followers","following_url":"https://api.github.com/users/JHGitty/following{/other_user}","gists_url":"https://api.github.com/users/JHGitty/gists{/gist_id}","starred_url":"https://api.github.com/users/JHGitty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JHGitty/subscriptions","organizations_url":"https://api.github.com/users/JHGitty/orgs","repos_url":"https://api.github.com/users/JHGitty/repos","events_url":"https://api.github.com/users/JHGitty/events{/privacy}","received_events_url":"https://api.github.com/users/JHGitty/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T14:54:37Z","updated_at":"2016-04-20T14:54:37Z","body":"@javiereguiluz I changed the file as in #18566 but still get the same error on ``composer update``.\r\n\r\n```\r\n$ composer update \r\nLoading composer repositories with package information\r\nUpdating dependencies (including require-dev)\r\nNothing to install or update\r\nGenerating autoload files\r\n> Incenteev\\ParameterHandler\\ScriptHandler::buildParameters\r\nUpdating the \"app/config/parameters.yml\" file\r\n> Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap\r\n> Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache\r\n\r\n                                                                                                                                                                               \r\n  [Symfony\\Component\\DependencyInjection\\Exception\\ServiceCircularReferenceException]                                                                                          \r\n  Circular reference detected for service \"debug.security.access.decision_manager\", path: \"debug.security.access.decision_manager -> debug.security.access.decision_manager\".  \r\n                                                                                                                                                                               \r\n\r\nScript Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception\r\n\r\n                                                                                                                                                             \r\n  [RuntimeException]                                                                                                                                         \r\n  An error occurred when executing the \"'cache:clear --no-warmup'\" command:                                                                                  \r\n                                                                                                                                                             \r\n                                                                                                                                                             \r\n    [Symfony\\Component\\DependencyInjection\\Exception\\ServiceCircularReferenceException]                                                                      \r\n                                                                                                                                                             \r\n    Circular reference detected for service \"debug.security.access.decision_manager\", path: \"debug.security.access.decision_manager -> debug.security.acces  \r\n  s.decision_manager\".             \r\n```"}}