{"action":"opened","issue":{"url":"https://api.github.com/repos/sonata-project/SonataCoreBundle/issues/306","repository_url":"https://api.github.com/repos/sonata-project/SonataCoreBundle","labels_url":"https://api.github.com/repos/sonata-project/SonataCoreBundle/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataCoreBundle/issues/306/comments","events_url":"https://api.github.com/repos/sonata-project/SonataCoreBundle/issues/306/events","html_url":"https://github.com/sonata-project/SonataCoreBundle/issues/306","id":160612774,"number":306,"title":"Inject formats in BaseSerializerHandler","user":{"login":"greg0ire","id":657779,"avatar_url":"https://avatars.githubusercontent.com/u/657779?v=3","gravatar_id":"","url":"https://api.github.com/users/greg0ire","html_url":"https://github.com/greg0ire","followers_url":"https://api.github.com/users/greg0ire/followers","following_url":"https://api.github.com/users/greg0ire/following{/other_user}","gists_url":"https://api.github.com/users/greg0ire/gists{/gist_id}","starred_url":"https://api.github.com/users/greg0ire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greg0ire/subscriptions","organizations_url":"https://api.github.com/users/greg0ire/orgs","repos_url":"https://api.github.com/users/greg0ire/repos","events_url":"https://api.github.com/users/greg0ire/events{/privacy}","received_events_url":"https://api.github.com/users/greg0ire/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-16T09:07:17Z","updated_at":"2016-06-16T09:07:17Z","closed_at":null,"body":"### Environment\r\n\r\nNot relevant\r\n\r\n## Subject\r\n\r\nThe BaseSerializerHandler has [formats hardcoded in it](https://github.com/sonata-project/SonataCoreBundle/blob/3.x/Serializer/BaseSerializerHandler.php#L43). This should be changed with injection. The injection should be optional and default to the current values (json, xml, and yml).\r\n\r\nThe issue was discovered [here](https://github.com/sonata-project/SonataCoreBundle/pull/303#discussion_r67187167), thanks to @ahmetakbn new tests, we should be simplified in the same PR."}}
{"actor":{"display_login":"greg0ire"}}