{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1901","repository_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1901/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1901/comments","events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1901/events","html_url":"https://github.com/FriendsOfSymfony/FOSRestBundle/issues/1901","id":333079471,"node_id":"MDU6SXNzdWUzMzMwNzk0NzE=","number":1901,"title":"JMS serializer not attached in container. ","user":{"login":"joshhornby","id":5455767,"node_id":"MDQ6VXNlcjU0NTU3Njc=","avatar_url":"https://avatars3.githubusercontent.com/u/5455767?v=4","gravatar_id":"","url":"https://api.github.com/users/joshhornby","html_url":"https://github.com/joshhornby","followers_url":"https://api.github.com/users/joshhornby/followers","following_url":"https://api.github.com/users/joshhornby/following{/other_user}","gists_url":"https://api.github.com/users/joshhornby/gists{/gist_id}","starred_url":"https://api.github.com/users/joshhornby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshhornby/subscriptions","organizations_url":"https://api.github.com/users/joshhornby/orgs","repos_url":"https://api.github.com/users/joshhornby/repos","events_url":"https://api.github.com/users/joshhornby/events{/privacy}","received_events_url":"https://api.github.com/users/joshhornby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-17T17:39:27Z","updated_at":"2018-07-25T09:31:58Z","closed_at":null,"author_association":"NONE","body":"The documentation states (https://symfony.com/doc/master/bundles/FOSRestBundle/1-setting_up_the_bundle.html#c-enable-a-serializer):\r\n\r\n>This bundle needs a serializer to work correctly. In most cases, you'll need to enable a serializer or install one. This bundle tries the following (in the given order) to determine the serializer to use:\r\n\r\n> The one you configured using fos_rest.service.serializer (if you did).\r\n> The JMS serializer, if the JMSSerializerBundle is available (and registered).\r\n> The Symfony Serializer if it's enabled (or any service called serializer).\r\n\r\nI've installed `\"jms/serializer-bundle\": \"^2.4\"` and using `\"friendsofsymfony/rest-bundle\": \"^2.3\"`.\r\n\r\nMy `bundles.php` has both `FOS\\RestBundle\\FOSRestBundle::class => ['all' => true],` and `JMS\\SerializerBundle\\JMSSerializerBundle::class => ['all' => true],`\r\nbut `$this->container->has('serializer')` is returning false? Is there some extra non documented step?\r\n"},"comment":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/comments/407694217","html_url":"https://github.com/FriendsOfSymfony/FOSRestBundle/issues/1901#issuecomment-407694217","issue_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1901","id":407694217,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzY5NDIxNw==","user":{"login":"magnetik","id":345029,"node_id":"MDQ6VXNlcjM0NTAyOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/345029?v=4","gravatar_id":"","url":"https://api.github.com/users/magnetik","html_url":"https://github.com/magnetik","followers_url":"https://api.github.com/users/magnetik/followers","following_url":"https://api.github.com/users/magnetik/following{/other_user}","gists_url":"https://api.github.com/users/magnetik/gists{/gist_id}","starred_url":"https://api.github.com/users/magnetik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magnetik/subscriptions","organizations_url":"https://api.github.com/users/magnetik/orgs","repos_url":"https://api.github.com/users/magnetik/repos","events_url":"https://api.github.com/users/magnetik/events{/privacy}","received_events_url":"https://api.github.com/users/magnetik/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T09:31:58Z","updated_at":"2018-07-25T09:31:58Z","author_association":"CONTRIBUTOR","body":"Which version of the FOSRestBundle are you using ? The JMSSerializer is not defining the `serializer` alias, but `jms_serializer.serialize` alias."}}
{"actor":{"display_login":"magnetik"}}