{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/27893","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/27893/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/27893/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/27893/events","html_url":"https://github.com/symfony/symfony/issues/27893","id":339166687,"node_id":"MDU6SXNzdWUzMzkxNjY2ODc=","number":27893,"title":"Symfony 3.4.11 autowiring is broken with single instances...","user":{"login":"joeyhub","id":1512978,"node_id":"MDQ6VXNlcjE1MTI5Nzg=","avatar_url":"https://avatars3.githubusercontent.com/u/1512978?v=4","gravatar_id":"","url":"https://api.github.com/users/joeyhub","html_url":"https://github.com/joeyhub","followers_url":"https://api.github.com/users/joeyhub/followers","following_url":"https://api.github.com/users/joeyhub/following{/other_user}","gists_url":"https://api.github.com/users/joeyhub/gists{/gist_id}","starred_url":"https://api.github.com/users/joeyhub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeyhub/subscriptions","organizations_url":"https://api.github.com/users/joeyhub/orgs","repos_url":"https://api.github.com/users/joeyhub/repos","events_url":"https://api.github.com/users/joeyhub/events{/privacy}","received_events_url":"https://api.github.com/users/joeyhub/received_events","type":"User","site_admin":false},"labels":[{"id":100079,"node_id":"MDU6TGFiZWwxMDAwNzk=","url":"https://api.github.com/repos/symfony/symfony/labels/Bug","name":"Bug","color":"e10c02","default":false},{"id":99863,"node_id":"MDU6TGFiZWw5OTg2Mw==","url":"https://api.github.com/repos/symfony/symfony/labels/DependencyInjection","name":"DependencyInjection","color":"DDDDDD","default":false},{"id":237003792,"node_id":"MDU6TGFiZWwyMzcwMDM3OTI=","url":"https://api.github.com/repos/symfony/symfony/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"ededed","default":false},{"id":520300257,"node_id":"MDU6TGFiZWw1MjAzMDAyNTc=","url":"https://api.github.com/repos/symfony/symfony/labels/Status:%20Waiting%20feedback","name":"Status: Waiting feedback","color":"fef2c0","default":false},{"id":2932845,"node_id":"MDU6TGFiZWwyOTMyODQ1","url":"https://api.github.com/repos/symfony/symfony/labels/Unconfirmed","name":"Unconfirmed","color":"444444","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-07-07T18:46:19Z","updated_at":"2018-08-24T05:45:12Z","closed_at":"2018-07-29T15:31:48Z","author_association":"NONE","body":"```\r\nInterfaces\\:\r\n resources: interfaces/*.php\r\n\r\nImplementations\\:\r\n resources: implementations/*.php\r\n\r\ninterface X\r\n\r\nclass Y implements X\r\n```\r\n\r\nWith this I get an error, could not instantiate interface X.\r\n\r\nThis is coming not from compilation but from the compiled code in cache. The compiled has generated invalid code and failed to detect this.\r\n\r\nAs Y is the only implementation of X, then services asking for X should get Y instead.\r\n\r\nZ which takes interface X as a constructor parameter is being loaded via service locator (Z is also public).\r\n\r\nI've noticed in file loader it uses aliases to do this. Shouldn't it be setting class on the interface entry instead?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/415657525","html_url":"https://github.com/symfony/symfony/issues/27893#issuecomment-415657525","issue_url":"https://api.github.com/repos/symfony/symfony/issues/27893","id":415657525,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTY1NzUyNQ==","user":{"login":"xabbuh","id":1957048,"node_id":"MDQ6VXNlcjE5NTcwNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/1957048?v=4","gravatar_id":"","url":"https://api.github.com/users/xabbuh","html_url":"https://github.com/xabbuh","followers_url":"https://api.github.com/users/xabbuh/followers","following_url":"https://api.github.com/users/xabbuh/following{/other_user}","gists_url":"https://api.github.com/users/xabbuh/gists{/gist_id}","starred_url":"https://api.github.com/users/xabbuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xabbuh/subscriptions","organizations_url":"https://api.github.com/users/xabbuh/orgs","repos_url":"https://api.github.com/users/xabbuh/repos","events_url":"https://api.github.com/users/xabbuh/events{/privacy}","received_events_url":"https://api.github.com/users/xabbuh/received_events","type":"User","site_admin":false},"created_at":"2018-08-24T05:45:12Z","updated_at":"2018-08-24T05:45:12Z","author_association":"MEMBER","body":"@joeyhub Can you create a small example application that allows to reproduce based on the observations you made?"}}
{"actor":{"display_login":"xabbuh"}}