{"action":"closed","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/20150","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/20150/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/20150/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/20150/events","html_url":"https://github.com/symfony/symfony/issues/20150","id":180843791,"number":20150,"title":"isPublic check in ConstraintValidatorsPass on decorators .inner argument","user":{"login":"mariuszpass","id":20437922,"avatar_url":"https://avatars.githubusercontent.com/u/20437922?v=3","gravatar_id":"","url":"https://api.github.com/users/mariuszpass","html_url":"https://github.com/mariuszpass","followers_url":"https://api.github.com/users/mariuszpass/followers","following_url":"https://api.github.com/users/mariuszpass/following{/other_user}","gists_url":"https://api.github.com/users/mariuszpass/gists{/gist_id}","starred_url":"https://api.github.com/users/mariuszpass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariuszpass/subscriptions","organizations_url":"https://api.github.com/users/mariuszpass/orgs","repos_url":"https://api.github.com/users/mariuszpass/repos","events_url":"https://api.github.com/users/mariuszpass/events{/privacy}","received_events_url":"https://api.github.com/users/mariuszpass/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/Bug","name":"Bug","color":"e10c02"},{"url":"https://api.github.com/repos/symfony/symfony/labels/DependencyInjection","name":"DependencyInjection","color":"DDDDDD"},{"url":"https://api.github.com/repos/symfony/symfony/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-04T09:22:41Z","updated_at":"2016-10-14T14:09:28Z","closed_at":"2016-10-14T14:09:28Z","body":"Hi.\r\nI have a decorator for doctrine.orm.validator.unique which is tagged with validator.constraint_validator. With symfony 3.1.5 new checks were introduced in [here](https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddConstraintValidatorsPass.php)\r\n\r\nMy decorator:\r\n```\r\n    app.decorating.doctrine_unique:\r\n        class:     CapiBundle\\Model\\Validator\\Constraints\\UniqueEntityDecorator\r\n        decorates: doctrine.orm.validator.unique\r\n        arguments: ['@app.decorating.doctrine_unique.inner', '@doctrine']\r\n        public:    false\r\n```\r\nresults with exception `The service \"app.decorating.doctrine_unique.inner\" must be public as it can be lazy-loaded.`\r\nAdditionaly, `InvalidArgumentException` is not imported."}}
{"actor":{"display_login":"fabpot"}}