{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/15703","labels_url":"https://api.github.com/repos/symfony/symfony/issues/15703/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/15703/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/15703/events","html_url":"https://github.com/symfony/symfony/issues/15703","id":105086659,"number":15703,"title":"[DX] Defining a service as private still public available","user":{"login":"cmodijk","id":771041,"avatar_url":"https://avatars.githubusercontent.com/u/771041?v=3","gravatar_id":"","url":"https://api.github.com/users/cmodijk","html_url":"https://github.com/cmodijk","followers_url":"https://api.github.com/users/cmodijk/followers","following_url":"https://api.github.com/users/cmodijk/following{/other_user}","gists_url":"https://api.github.com/users/cmodijk/gists{/gist_id}","starred_url":"https://api.github.com/users/cmodijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmodijk/subscriptions","organizations_url":"https://api.github.com/users/cmodijk/orgs","repos_url":"https://api.github.com/users/cmodijk/repos","events_url":"https://api.github.com/users/cmodijk/events{/privacy}","received_events_url":"https://api.github.com/users/cmodijk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-06T10:54:09Z","updated_at":"2015-09-06T11:11:21Z","closed_at":"2015-09-06T10:55:47Z","body":"I'm currently using the public=false on my services but when a services is used twice in the container it becomes available inside the controller from the public side. I don't know if this is expected behaviour or not but I was a bit confused that this worked. If I look at the duped container i see that the private services are inlined but the private one which is used twice is not. \r\n\r\nIf this is expected i think this should be documented.\r\n* http://symfony.com/doc/current/components/dependency_injection/advanced.html"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/138070367","html_url":"https://github.com/symfony/symfony/issues/15703#issuecomment-138070367","issue_url":"https://api.github.com/repos/symfony/symfony/issues/15703","id":138070367,"user":{"login":"cmodijk","id":771041,"avatar_url":"https://avatars.githubusercontent.com/u/771041?v=3","gravatar_id":"","url":"https://api.github.com/users/cmodijk","html_url":"https://github.com/cmodijk","followers_url":"https://api.github.com/users/cmodijk/followers","following_url":"https://api.github.com/users/cmodijk/following{/other_user}","gists_url":"https://api.github.com/users/cmodijk/gists{/gist_id}","starred_url":"https://api.github.com/users/cmodijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmodijk/subscriptions","organizations_url":"https://api.github.com/users/cmodijk/orgs","repos_url":"https://api.github.com/users/cmodijk/repos","events_url":"https://api.github.com/users/cmodijk/events{/privacy}","received_events_url":"https://api.github.com/users/cmodijk/received_events","type":"User","site_admin":false},"created_at":"2015-09-06T11:11:21Z","updated_at":"2015-09-06T11:11:21Z","body":"@WouterJ Yeah, i found it tnx and i'm sorry again for creating this issue!  "}}