{"action":"opened","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/20954","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/20954/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/20954/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/20954/events","html_url":"https://github.com/symfony/symfony/issues/20954","id":196040544,"number":20954,"title":"Debug a service which is an alias","user":{"login":"theofidry","id":5175937,"avatar_url":"https://avatars.githubusercontent.com/u/5175937?v=3","gravatar_id":"","url":"https://api.github.com/users/theofidry","html_url":"https://github.com/theofidry","followers_url":"https://api.github.com/users/theofidry/followers","following_url":"https://api.github.com/users/theofidry/following{/other_user}","gists_url":"https://api.github.com/users/theofidry/gists{/gist_id}","starred_url":"https://api.github.com/users/theofidry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theofidry/subscriptions","organizations_url":"https://api.github.com/users/theofidry/orgs","repos_url":"https://api.github.com/users/theofidry/repos","events_url":"https://api.github.com/users/theofidry/events{/privacy}","received_events_url":"https://api.github.com/users/theofidry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-16T11:38:55Z","updated_at":"2016-12-16T11:38:55Z","closed_at":null,"body":"| Q                | A\r\n| ---------------- | -----\r\n| Bug report?      | no\r\n| Feature request? | yes\r\n| BC Break report? | no\r\n| RFC?             | no\r\n| Symfony version  | dunno\r\n\r\nWhen doing a `bin/console debug:container <service-name>`, there is two possible outputs:\r\n\r\n1) You get the service details:\r\n\r\n```\r\n$ bin/console debug:container httplug.client.default\r\n\r\nInformation for Service \"httplug.client.curl\"\r\n=============================================\r\n\r\n ------------------ ------------------------------------------------------\r\n  Option             Value\r\n ------------------ ------------------------------------------------------\r\n  Service ID         httplug.client.curl\r\n  Class              Http\\HttplugBundle\\ClientFactory\\DummyClient\r\n  Tags               -\r\n  Public             yes\r\n  Synthetic          no\r\n  Lazy               no\r\n  Shared             yes\r\n  Abstract           no\r\n  Autowired          no\r\n  Autowiring Types   -\r\n  Factory Class      Http\\HttplugBundle\\ClientFactory\\PluginClientFactory\r\n  Factory Method     createPluginClient\r\n ------------------ ------------------------------------------------------\r\n```\r\n\r\n2) the service in question is an alias:\r\n\r\n```\r\n$ bin/console debug:container httplug.client\r\n\r\n // This service is an alias for the service httplug.client.curl\r\n```\r\n\r\nMight be stupid but personally I find annoying to have to do a second command when I have an alias, even more so if it's an alias of an alias...\r\n\r\nIMO it would be better to have something like:\r\n\r\n```\r\n$ bin/console debug:container httplug.client\r\n\r\n// This service is an alias for the service httplug.client.curl\r\n\r\nInformation for Service \"httplug.client.curl\"\r\n=============================================\r\n\r\n ------------------ ------------------------------------------------------\r\n  Option             Value\r\n ------------------ ------------------------------------------------------\r\n  Service ID         httplug.client.curl\r\n  Class              Http\\HttplugBundle\\ClientFactory\\DummyClient\r\n  Tags               -\r\n  Public             yes\r\n  Synthetic          no\r\n  Lazy               no\r\n  Shared             yes\r\n  Abstract           no\r\n  Autowired          no\r\n  Autowiring Types   -\r\n  Factory Class      Http\\HttplugBundle\\ClientFactory\\PluginClientFactory\r\n  Factory Method     createPluginClient\r\n ------------------ ------------------------------------------------------\r\n```"}}
{"actor":{"display_login":"theofidry"}}