{"action":"created","comment":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/comments/34346484","id":34346484,"diff_hunk":"@@ -0,0 +1,46 @@\n+<?php\n+\n+/*\n+ * This file is part of the FOSRestBundle package.\n+ *\n+ * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>\n+ *\n+ * For the full copyright and license information, please view the LICENSE\n+ * file that was distributed with this source code.\n+ */\n+\n+namespace FOS\\RestBundle\\Context\\Adapter;\n+\n+use FOS\\RestBundle\\Context\\ContextInterface;\n+\n+/**\n+ * {@inheritdoc}\n+ *\n+ * @author Ener-Getick <egetick@gmail.com>\n+ */\n+interface ContextAdapterInterface\n+{\n+    /**\n+      * Specialize a standard context.\n+      *\n+      * @param ContextInterface $context\n+      * @param int            $direction\n+      * @param mixed            $serializer\n+      *\n+      * @return mixed\n+      *\n+      * @throws \\LogicException if the specialization is not supported\n+      */\n+     public function specialize(ContextInterface $context, $direction, $serializer);","path":"Context/Adapter/ContextAdapterInterface.php","position":34,"original_position":34,"commit_id":"894592df317ca26715798b8a9cbc89940d4900df","original_commit_id":"894592df317ca26715798b8a9cbc89940d4900df","user":{"login":"lsmith77","id":300279,"avatar_url":"https://avatars.githubusercontent.com/u/300279?v=3","gravatar_id":"","url":"https://api.github.com/users/lsmith77","html_url":"https://github.com/lsmith77","followers_url":"https://api.github.com/users/lsmith77/followers","following_url":"https://api.github.com/users/lsmith77/following{/other_user}","gists_url":"https://api.github.com/users/lsmith77/gists{/gist_id}","starred_url":"https://api.github.com/users/lsmith77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsmith77/subscriptions","organizations_url":"https://api.github.com/users/lsmith77/orgs","repos_url":"https://api.github.com/users/lsmith77/repos","events_url":"https://api.github.com/users/lsmith77/events{/privacy}","received_events_url":"https://api.github.com/users/lsmith77/received_events","type":"User","site_admin":false},"body":"another idea for the method name ``convert()`` .. for ``$direction`` maybe ``$type`` .. but not so great ..","created_at":"2015-07-10T11:21:52Z","updated_at":"2015-07-10T11:21:52Z","html_url":"https://github.com/FriendsOfSymfony/FOSRestBundle/pull/1074#discussion_r34346484","pull_request_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/1074","_links":{"self":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/comments/34346484"},"html":{"href":"https://github.com/FriendsOfSymfony/FOSRestBundle/pull/1074#discussion_r34346484"},"pull_request":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/1074"}}},"pull_request":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/1074","id":38321414,"html_url":"https://github.com/FriendsOfSymfony/FOSRestBundle/pull/1074","diff_url":"https://github.com/FriendsOfSymfony/FOSRestBundle/pull/1074.diff","patch_url":"https://github.com/FriendsOfSymfony/FOSRestBundle/pull/1074.patch","issue_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1074","number":1074,"state":"open","locked":false,"title":"Supports the 2.7 symfony serializer","user":{"login":"Ener-Getick","id":6871899,"avatar_url":"https://avatars.githubusercontent.com/u/6871899?v=3","gravatar_id":"","url":"https://api.github.com/users/Ener-Getick","html_url":"https://github.com/Ener-Getick","followers_url":"https://api.github.com/users/Ener-Getick/followers","following_url":"https://api.github.com/users/Ener-Getick/following{/other_user}","gists_url":"https://api.github.com/users/Ener-Getick/gists{/gist_id}","starred_url":"https://api.github.com/users/Ener-Getick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ener-Getick/subscriptions","organizations_url":"https://api.github.com/users/Ener-Getick/orgs","repos_url":"https://api.github.com/users/Ener-Getick/repos","events_url":"https://api.github.com/users/Ener-Getick/events{/privacy}","received_events_url":"https://api.github.com/users/Ener-Getick/received_events","type":"User","site_admin":false},"body":"This PR add the support of the 2.7 symfony serializer.\r\n\r\nFor that, I created a standard context class that makes the link between the different context format.\r\nTo not create bc breaks, the users can still deliver a jms context class to the view but also the new standard class.\r\n\r\nIn the case that user delivers a jms context to the view, the context is transformed to a standard context.\r\n\r\nBut I see two problems :\r\n- If the user gets directly the context in the view, he could get a jms context or a standard context. So should we transform the context directly in the view ? And in all the cases he will not have the same context as before...\r\n- If we transform the context outside of the view, we must transform the context in each class that needs the (de)serialization context ...\r\n\r\nThis PR is not ready yet, I await your feedbacks !","created_at":"2015-06-23T10:22:07Z","updated_at":"2015-07-10T11:21:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a963e7619892ee33f66e8275ebe478d4ba48231","assignee":null,"milestone":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/milestones/5","html_url":"https://github.com/FriendsOfSymfony/FOSRestBundle/milestones/2.0","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/milestones/5/labels","id":954486,"number":5,"title":"2.0","description":"","creator":{"login":"lsmith77","id":300279,"avatar_url":"https://avatars.githubusercontent.com/u/300279?v=3","gravatar_id":"","url":"https://api.github.com/users/lsmith77","html_url":"https://github.com/lsmith77","followers_url":"https://api.github.com/users/lsmith77/followers","following_url":"https://api.github.com/users/lsmith77/following{/other_user}","gists_url":"https://api.github.com/users/lsmith77/gists{/gist_id}","starred_url":"https://api.github.com/users/lsmith77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsmith77/subscriptions","organizations_url":"https://api.github.com/users/lsmith77/orgs","repos_url":"https://api.github.com/users/lsmith77/repos","events_url":"https://api.github.com/users/lsmith77/events{/privacy}","received_events_url":"https://api.github.com/users/lsmith77/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":0,"state":"open","created_at":"2015-01-28T08:04:14Z","updated_at":"2015-06-25T11:48:05Z","due_on":"2015-11-29T23:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/1074/commits","review_comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/1074/comments","review_comment_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1074/comments","statuses_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/statuses/894592df317ca26715798b8a9cbc89940d4900df","head":{"label":"Ener-Getick:TICKET_1025","ref":"TICKET_1025","sha":"894592df317ca26715798b8a9cbc89940d4900df","user":{"login":"Ener-Getick","id":6871899,"avatar_url":"https://avatars.githubusercontent.com/u/6871899?v=3","gravatar_id":"","url":"https://api.github.com/users/Ener-Getick","html_url":"https://github.com/Ener-Getick","followers_url":"https://api.github.com/users/Ener-Getick/followers","following_url":"https://api.github.com/users/Ener-Getick/following{/other_user}","gists_url":"https://api.github.com/users/Ener-Getick/gists{/gist_id}","starred_url":"https://api.github.com/users/Ener-Getick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ener-Getick/subscriptions","organizations_url":"https://api.github.com/users/Ener-Getick/orgs","repos_url":"https://api.github.com/users/Ener-Getick/repos","events_url":"https://api.github.com/users/Ener-Getick/events{/privacy}","received_events_url":"https://api.github.com/users/Ener-Getick/received_events","type":"User","site_admin":false},"repo":{"id":37521946,"name":"FOSRestBundle","full_name":"Ener-Getick/FOSRestBundle","owner":{"login":"Ener-Getick","id":6871899,"avatar_url":"https://avatars.githubusercontent.com/u/6871899?v=3","gravatar_id":"","url":"https://api.github.com/users/Ener-Getick","html_url":"https://github.com/Ener-Getick","followers_url":"https://api.github.com/users/Ener-Getick/followers","following_url":"https://api.github.com/users/Ener-Getick/following{/other_user}","gists_url":"https://api.github.com/users/Ener-Getick/gists{/gist_id}","starred_url":"https://api.github.com/users/Ener-Getick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ener-Getick/subscriptions","organizations_url":"https://api.github.com/users/Ener-Getick/orgs","repos_url":"https://api.github.com/users/Ener-Getick/repos","events_url":"https://api.github.com/users/Ener-Getick/events{/privacy}","received_events_url":"https://api.github.com/users/Ener-Getick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ener-Getick/FOSRestBundle","description":"This Bundle provides various tools to rapidly develop RESTful API's with Symfony2","fork":true,"url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle","forks_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/forks","keys_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/teams","hooks_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/hooks","issue_events_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/issues/events{/number}","events_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/events","assignees_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/assignees{/user}","branches_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/branches{/branch}","tags_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/tags","blobs_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/languages","stargazers_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/stargazers","contributors_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/contributors","subscribers_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/subscribers","subscription_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/subscription","commits_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/contents/{+path}","compare_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/merges","archive_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/downloads","issues_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/issues{/number}","pulls_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/labels{/name}","releases_url":"https://api.github.com/repos/Ener-Getick/FOSRestBundle/releases{/id}","created_at":"2015-06-16T09:50:51Z","updated_at":"2015-06-16T09:50:51Z","pushed_at":"2015-07-06T11:33:14Z","git_url":"git://github.com/Ener-Getick/FOSRestBundle.git","ssh_url":"git@github.com:Ener-Getick/FOSRestBundle.git","clone_url":"https://github.com/Ener-Getick/FOSRestBundle.git","svn_url":"https://github.com/Ener-Getick/FOSRestBundle","homepage":"http://friendsofsymfony.github.com/","size":3030,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"FriendsOfSymfony:master","ref":"master","sha":"04393c06818202190e32e2ebf8c74051de8401c5","user":{"login":"FriendsOfSymfony","id":529709,"avatar_url":"https://avatars.githubusercontent.com/u/529709?v=3","gravatar_id":"","url":"https://api.github.com/users/FriendsOfSymfony","html_url":"https://github.com/FriendsOfSymfony","followers_url":"https://api.github.com/users/FriendsOfSymfony/followers","following_url":"https://api.github.com/users/FriendsOfSymfony/following{/other_user}","gists_url":"https://api.github.com/users/FriendsOfSymfony/gists{/gist_id}","starred_url":"https://api.github.com/users/FriendsOfSymfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriendsOfSymfony/subscriptions","organizations_url":"https://api.github.com/users/FriendsOfSymfony/orgs","repos_url":"https://api.github.com/users/FriendsOfSymfony/repos","events_url":"https://api.github.com/users/FriendsOfSymfony/events{/privacy}","received_events_url":"https://api.github.com/users/FriendsOfSymfony/received_events","type":"Organization","site_admin":false},"repo":{"id":1509011,"name":"FOSRestBundle","full_name":"FriendsOfSymfony/FOSRestBundle","owner":{"login":"FriendsOfSymfony","id":529709,"avatar_url":"https://avatars.githubusercontent.com/u/529709?v=3","gravatar_id":"","url":"https://api.github.com/users/FriendsOfSymfony","html_url":"https://github.com/FriendsOfSymfony","followers_url":"https://api.github.com/users/FriendsOfSymfony/followers","following_url":"https://api.github.com/users/FriendsOfSymfony/following{/other_user}","gists_url":"https://api.github.com/users/FriendsOfSymfony/gists{/gist_id}","starred_url":"https://api.github.com/users/FriendsOfSymfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriendsOfSymfony/subscriptions","organizations_url":"https://api.github.com/users/FriendsOfSymfony/orgs","repos_url":"https://api.github.com/users/FriendsOfSymfony/repos","events_url":"https://api.github.com/users/FriendsOfSymfony/events{/privacy}","received_events_url":"https://api.github.com/users/FriendsOfSymfony/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FriendsOfSymfony/FOSRestBundle","description":"This Bundle provides various tools to rapidly develop RESTful API's with Symfony2","fork":false,"url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle","forks_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/forks","keys_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/teams","hooks_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/hooks","issue_events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/events{/number}","events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/events","assignees_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/assignees{/user}","branches_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/branches{/branch}","tags_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/tags","blobs_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/languages","stargazers_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/stargazers","contributors_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/contributors","subscribers_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/subscribers","subscription_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/subscription","commits_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/contents/{+path}","compare_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/merges","archive_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/downloads","issues_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues{/number}","pulls_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/labels{/name}","releases_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/releases{/id}","created_at":"2011-03-21T23:14:13Z","updated_at":"2015-07-08T13:51:47Z","pushed_at":"2015-07-08T07:03:59Z","git_url":"git://github.com/FriendsOfSymfony/FOSRestBundle.git","ssh_url":"git@github.com:FriendsOfSymfony/FOSRestBundle.git","clone_url":"https://github.com/FriendsOfSymfony/FOSRestBundle.git","svn_url":"https://github.com/FriendsOfSymfony/FOSRestBundle","homepage":"http://friendsofsymfony.github.com/","size":6209,"stargazers_count":1167,"watchers_count":1167,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":466,"mirror_url":null,"open_issues_count":85,"forks":466,"open_issues":85,"watchers":1167,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/1074"},"html":{"href":"https://github.com/FriendsOfSymfony/FOSRestBundle/pull/1074"},"issue":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1074"},"comments":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1074/comments"},"review_comments":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/1074/comments"},"review_comment":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/1074/commits"},"statuses":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/statuses/894592df317ca26715798b8a9cbc89940d4900df"}}}}