{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/15261","labels_url":"https://api.github.com/repos/symfony/symfony/issues/15261/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/15261/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/15261/events","html_url":"https://github.com/symfony/symfony/issues/15261","id":94463448,"number":15261,"title":"Container::__clone is missing","user":{"login":"chx","id":193045,"avatar_url":"https://avatars.githubusercontent.com/u/193045?v=3","gravatar_id":"","url":"https://api.github.com/users/chx","html_url":"https://github.com/chx","followers_url":"https://api.github.com/users/chx/followers","following_url":"https://api.github.com/users/chx/following{/other_user}","gists_url":"https://api.github.com/users/chx/gists{/gist_id}","starred_url":"https://api.github.com/users/chx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chx/subscriptions","organizations_url":"https://api.github.com/users/chx/orgs","repos_url":"https://api.github.com/users/chx/repos","events_url":"https://api.github.com/users/chx/events{/privacy}","received_events_url":"https://api.github.com/users/chx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/DependencyInjection","name":"DependencyInjection","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-11T11:23:30Z","updated_at":"2015-07-14T07:26:04Z","closed_at":null,"body":"When writing a unit test for Drupal, I found the parameter bag was not cloned so at least\r\n\r\n    public function __clone() {\r\n        $this->parameterBag = clone $this->parameterBag;\r\n    }\r\n\r\nbut that's nowhere near enough as services , scopes etc needs to be cloned too.\r\n "},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/121151597","html_url":"https://github.com/symfony/symfony/issues/15261#issuecomment-121151597","issue_url":"https://api.github.com/repos/symfony/symfony/issues/15261","id":121151597,"user":{"login":"fabpot","id":47313,"avatar_url":"https://avatars.githubusercontent.com/u/47313?v=3","gravatar_id":"","url":"https://api.github.com/users/fabpot","html_url":"https://github.com/fabpot","followers_url":"https://api.github.com/users/fabpot/followers","following_url":"https://api.github.com/users/fabpot/following{/other_user}","gists_url":"https://api.github.com/users/fabpot/gists{/gist_id}","starred_url":"https://api.github.com/users/fabpot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabpot/subscriptions","organizations_url":"https://api.github.com/users/fabpot/orgs","repos_url":"https://api.github.com/users/fabpot/repos","events_url":"https://api.github.com/users/fabpot/events{/privacy}","received_events_url":"https://api.github.com/users/fabpot/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T07:26:04Z","updated_at":"2015-07-14T07:26:04Z","body":"Indeed, a Container is not meant to be cloned. Not sure if we want to support this use case. Can you tell us a bit more about why you want to clone a Container?"}}