{"action":"created","comment":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/comments/77151259","id":77151259,"diff_hunk":"@@ -143,14 +143,15 @@ There are several more methods on the ``View`` class, here is a list of all\n the important ones for configuring the view:\n \n * ``setData($data)`` - Set the object graph or list of objects to serialize.\n-* ``setTemplateData($templateData)`` - Set the template data array or anonymous function. Closure should return array.\n+* ``setTemplateData($data)`` - Set the template data array or anonymous function. Closure should return array.\n * ``setHeader($name, $value)`` - Set a header to put on the HTTP response.\n * ``setHeaders(array $headers)`` - Set multiple headers to put on the HTTP response.\n-* ``setSerializationContext($context)`` - Set the serialization context to use.\n-* ``setTemplate($name)`` - Name of the template to use in case of HTML rendering.\n-* ``setTemplateVar($name)`` - Name of the variable the data is in, when passed\n+* ``setStatusCode($code)`` - Set the HTTP status code.\n+* ``setContext(Context $context)`` - Set the serialization context to use.","path":"Resources/doc/2-the-view-layer.rst","position":12,"original_position":12,"commit_id":"6d1617ad432743893f188aa9f801fb385bf630e2","original_commit_id":"6d1617ad432743893f188aa9f801fb385bf630e2","user":{"login":"IndraGunawan","id":2704730,"avatar_url":"https://avatars.githubusercontent.com/u/2704730?v=3","gravatar_id":"","url":"https://api.github.com/users/IndraGunawan","html_url":"https://github.com/IndraGunawan","followers_url":"https://api.github.com/users/IndraGunawan/followers","following_url":"https://api.github.com/users/IndraGunawan/following{/other_user}","gists_url":"https://api.github.com/users/IndraGunawan/gists{/gist_id}","starred_url":"https://api.github.com/users/IndraGunawan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IndraGunawan/subscriptions","organizations_url":"https://api.github.com/users/IndraGunawan/orgs","repos_url":"https://api.github.com/users/IndraGunawan/repos","events_url":"https://api.github.com/users/IndraGunawan/events{/privacy}","received_events_url":"https://api.github.com/users/IndraGunawan/received_events","type":"User","site_admin":false},"body":"i just add available method of FOS\\RestBundle\\View\\View.\r\n\r\nits better to remove from doc?","created_at":"2016-09-01T10:40:55Z","updated_at":"2016-09-01T10:40:55Z","html_url":"https://github.com/FriendsOfSymfony/FOSRestBundle/pull/1560#discussion_r77151259","pull_request_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/1560","_links":{"self":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/comments/77151259"},"html":{"href":"https://github.com/FriendsOfSymfony/FOSRestBundle/pull/1560#discussion_r77151259"},"pull_request":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/1560"}}},"pull_request":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/1560","id":83588008,"html_url":"https://github.com/FriendsOfSymfony/FOSRestBundle/pull/1560","diff_url":"https://github.com/FriendsOfSymfony/FOSRestBundle/pull/1560.diff","patch_url":"https://github.com/FriendsOfSymfony/FOSRestBundle/pull/1560.patch","issue_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1560","number":1560,"state":"open","locked":false,"title":"Fix available methods of View","user":{"login":"IndraGunawan","id":2704730,"avatar_url":"https://avatars.githubusercontent.com/u/2704730?v=3","gravatar_id":"","url":"https://api.github.com/users/IndraGunawan","html_url":"https://github.com/IndraGunawan","followers_url":"https://api.github.com/users/IndraGunawan/followers","following_url":"https://api.github.com/users/IndraGunawan/following{/other_user}","gists_url":"https://api.github.com/users/IndraGunawan/gists{/gist_id}","starred_url":"https://api.github.com/users/IndraGunawan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IndraGunawan/subscriptions","organizations_url":"https://api.github.com/users/IndraGunawan/orgs","repos_url":"https://api.github.com/users/IndraGunawan/repos","events_url":"https://api.github.com/users/IndraGunawan/events{/privacy}","received_events_url":"https://api.github.com/users/IndraGunawan/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-01T08:11:23Z","updated_at":"2016-09-01T10:40:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57031b9d3d8a404543715363a97b57d951f95fab","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/1560/commits","review_comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/1560/comments","review_comment_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1560/comments","statuses_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/statuses/6d1617ad432743893f188aa9f801fb385bf630e2","head":{"label":"IndraGunawan:view-layer-doc","ref":"view-layer-doc","sha":"6d1617ad432743893f188aa9f801fb385bf630e2","user":{"login":"IndraGunawan","id":2704730,"avatar_url":"https://avatars.githubusercontent.com/u/2704730?v=3","gravatar_id":"","url":"https://api.github.com/users/IndraGunawan","html_url":"https://github.com/IndraGunawan","followers_url":"https://api.github.com/users/IndraGunawan/followers","following_url":"https://api.github.com/users/IndraGunawan/following{/other_user}","gists_url":"https://api.github.com/users/IndraGunawan/gists{/gist_id}","starred_url":"https://api.github.com/users/IndraGunawan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IndraGunawan/subscriptions","organizations_url":"https://api.github.com/users/IndraGunawan/orgs","repos_url":"https://api.github.com/users/IndraGunawan/repos","events_url":"https://api.github.com/users/IndraGunawan/events{/privacy}","received_events_url":"https://api.github.com/users/IndraGunawan/received_events","type":"User","site_admin":false},"repo":{"id":66929491,"name":"FOSRestBundle","full_name":"IndraGunawan/FOSRestBundle","owner":{"login":"IndraGunawan","id":2704730,"avatar_url":"https://avatars.githubusercontent.com/u/2704730?v=3","gravatar_id":"","url":"https://api.github.com/users/IndraGunawan","html_url":"https://github.com/IndraGunawan","followers_url":"https://api.github.com/users/IndraGunawan/followers","following_url":"https://api.github.com/users/IndraGunawan/following{/other_user}","gists_url":"https://api.github.com/users/IndraGunawan/gists{/gist_id}","starred_url":"https://api.github.com/users/IndraGunawan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IndraGunawan/subscriptions","organizations_url":"https://api.github.com/users/IndraGunawan/orgs","repos_url":"https://api.github.com/users/IndraGunawan/repos","events_url":"https://api.github.com/users/IndraGunawan/events{/privacy}","received_events_url":"https://api.github.com/users/IndraGunawan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/IndraGunawan/FOSRestBundle","description":"This Bundle provides various tools to rapidly develop RESTful API's with Symfony","fork":true,"url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle","forks_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/forks","keys_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/teams","hooks_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/hooks","issue_events_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/issues/events{/number}","events_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/events","assignees_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/assignees{/user}","branches_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/branches{/branch}","tags_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/tags","blobs_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/languages","stargazers_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/stargazers","contributors_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/contributors","subscribers_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/subscribers","subscription_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/subscription","commits_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/contents/{+path}","compare_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/merges","archive_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/downloads","issues_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/issues{/number}","pulls_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/labels{/name}","releases_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/releases{/id}","deployments_url":"https://api.github.com/repos/IndraGunawan/FOSRestBundle/deployments","created_at":"2016-08-30T10:05:45Z","updated_at":"2016-08-30T10:05:49Z","pushed_at":"2016-09-01T08:11:40Z","git_url":"git://github.com/IndraGunawan/FOSRestBundle.git","ssh_url":"git@github.com:IndraGunawan/FOSRestBundle.git","clone_url":"https://github.com/IndraGunawan/FOSRestBundle.git","svn_url":"https://github.com/IndraGunawan/FOSRestBundle","homepage":"http://symfony.com/doc/master/bundles/FOSRestBundle/index.html","size":3594,"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:2.0","ref":"2.0","sha":"54190d6290789bf9af2abd683e7be51d5f8eb772","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 Symfony","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}","deployments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/deployments","created_at":"2011-03-21T23:14:13Z","updated_at":"2016-08-31T14:01:06Z","pushed_at":"2016-09-01T08:12:11Z","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://symfony.com/doc/master/bundles/FOSRestBundle/index.html","size":4874,"stargazers_count":1392,"watchers_count":1392,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":548,"mirror_url":null,"open_issues_count":82,"forks":548,"open_issues":82,"watchers":1392,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/1560"},"html":{"href":"https://github.com/FriendsOfSymfony/FOSRestBundle/pull/1560"},"issue":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1560"},"comments":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/1560/comments"},"review_comments":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/1560/comments"},"review_comment":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/1560/commits"},"statuses":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/statuses/6d1617ad432743893f188aa9f801fb385bf630e2"}}}}
{"actor":{"display_login":"IndraGunawan"}}