{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/27756","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/27756/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/27756/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/27756/events","html_url":"https://github.com/symfony/symfony/issues/27756","id":336573670,"node_id":"MDU6SXNzdWUzMzY1NzM2NzA=","number":27756,"title":"Lazy services are not shared","user":{"login":"yellow1912","id":374134,"node_id":"MDQ6VXNlcjM3NDEzNA==","avatar_url":"https://avatars1.githubusercontent.com/u/374134?v=4","gravatar_id":"","url":"https://api.github.com/users/yellow1912","html_url":"https://github.com/yellow1912","followers_url":"https://api.github.com/users/yellow1912/followers","following_url":"https://api.github.com/users/yellow1912/following{/other_user}","gists_url":"https://api.github.com/users/yellow1912/gists{/gist_id}","starred_url":"https://api.github.com/users/yellow1912/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yellow1912/subscriptions","organizations_url":"https://api.github.com/users/yellow1912/orgs","repos_url":"https://api.github.com/users/yellow1912/repos","events_url":"https://api.github.com/users/yellow1912/events{/privacy}","received_events_url":"https://api.github.com/users/yellow1912/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}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-28T11:00:49Z","updated_at":"2018-06-29T07:05:13Z","closed_at":null,"author_association":"NONE","body":"**Symfony version(s) affected**: 3.4.12\r\n\r\n**Description**  \r\n<!-- A clear and concise description of the problem. -->\r\nI'm not sure if this is intentional or a new issue that has just come up, but it seems like any service that is declared as lazy is not shared anymore.\r\n\r\n**How to reproduce**  \r\nDeclare any service as lazy and then call it more than once any where, you will see that it is initialized more than once (__construct is called many times)\r\n\r\nThis issue happens today after I updated my code.\r\n\r\nEdit: I tested on a very class with nothing but the __construct and another simple method, I can confirm that this happens on my current installation. If further checking is needed I can try with a barebone installation of Symfony."},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/401267451","html_url":"https://github.com/symfony/symfony/issues/27756#issuecomment-401267451","issue_url":"https://api.github.com/repos/symfony/symfony/issues/27756","id":401267451,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTI2NzQ1MQ==","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-06-29T07:05:13Z","updated_at":"2018-06-29T07:05:13Z","author_association":"MEMBER","body":"You mean that the stack trace is exactly the same five times? That would be weird as I don't see why your kernel should handle five requests. I think it would still help a lot if you could create a small example application that would allow to reproduce the issue."}}
{"actor":{"display_login":"xabbuh"}}