{"action":"created","comment":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/comments/24335636","id":24335636,"diff_hunk":"@@ -132,6 +133,21 @@ public function setData($data)\n     }\n \n     /**\n+     * Set template variable\n+     *\n+     * @param $variableName\n+     * @param $data\n+     *\n+     * @return View\n+     */\n+    public function setTemplateData($variableName, $data)","path":"View/View.php","position":19,"original_position":19,"commit_id":"88bcd6a2d6aa30060473425b3c174f69ecf19dd3","original_commit_id":"88bcd6a2d6aa30060473425b3c174f69ecf19dd3","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":"@giosh94mhz you can also propose an alternative PR based on this PR .. might make the discussion easier.","created_at":"2015-02-09T15:30:28Z","updated_at":"2015-02-09T15:30:28Z","html_url":"https://github.com/FriendsOfSymfony/FOSRestBundle/pull/936#discussion_r24335636","pull_request_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/936","_links":{"self":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/comments/24335636"},"html":{"href":"https://github.com/FriendsOfSymfony/FOSRestBundle/pull/936#discussion_r24335636"},"pull_request":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/936"}}},"pull_request":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/936","id":27469272,"html_url":"https://github.com/FriendsOfSymfony/FOSRestBundle/pull/936","diff_url":"https://github.com/FriendsOfSymfony/FOSRestBundle/pull/936.diff","patch_url":"https://github.com/FriendsOfSymfony/FOSRestBundle/pull/936.patch","issue_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/936","number":936,"state":"open","locked":false,"title":"Pass additional variables in template system","user":{"login":"Cript","id":790497,"avatar_url":"https://avatars.githubusercontent.com/u/790497?v=3","gravatar_id":"","url":"https://api.github.com/users/Cript","html_url":"https://github.com/Cript","followers_url":"https://api.github.com/users/Cript/followers","following_url":"https://api.github.com/users/Cript/following{/other_user}","gists_url":"https://api.github.com/users/Cript/gists{/gist_id}","starred_url":"https://api.github.com/users/Cript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cript/subscriptions","organizations_url":"https://api.github.com/users/Cript/orgs","repos_url":"https://api.github.com/users/Cript/repos","events_url":"https://api.github.com/users/Cript/events{/privacy}","received_events_url":"https://api.github.com/users/Cript/received_events","type":"User","site_admin":false},"body":"Hello. I want to pass additional variables in template. For example category page with goods. \r\nI think it is good way to do this.","created_at":"2015-01-15T22:44:08Z","updated_at":"2015-02-09T15:30:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"238cde48c5189f8e606cb26e76a0a4c90928c04b","assignee":null,"milestone":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/milestones/4","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/milestones/4/labels","id":946879,"number":4,"title":"1.6.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":9,"closed_issues":7,"state":"open","created_at":"2015-01-22T13:51:36Z","updated_at":"2015-02-09T15:28:43Z","due_on":"2015-03-30T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/936/commits","review_comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/936/comments","review_comment_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/comments/{number}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/936/comments","statuses_url":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/statuses/88bcd6a2d6aa30060473425b3c174f69ecf19dd3","head":{"label":"Cript:master","ref":"master","sha":"88bcd6a2d6aa30060473425b3c174f69ecf19dd3","user":{"login":"Cript","id":790497,"avatar_url":"https://avatars.githubusercontent.com/u/790497?v=3","gravatar_id":"","url":"https://api.github.com/users/Cript","html_url":"https://github.com/Cript","followers_url":"https://api.github.com/users/Cript/followers","following_url":"https://api.github.com/users/Cript/following{/other_user}","gists_url":"https://api.github.com/users/Cript/gists{/gist_id}","starred_url":"https://api.github.com/users/Cript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cript/subscriptions","organizations_url":"https://api.github.com/users/Cript/orgs","repos_url":"https://api.github.com/users/Cript/repos","events_url":"https://api.github.com/users/Cript/events{/privacy}","received_events_url":"https://api.github.com/users/Cript/received_events","type":"User","site_admin":false},"repo":{"id":29320783,"name":"FOSRestBundle","full_name":"Cript/FOSRestBundle","owner":{"login":"Cript","id":790497,"avatar_url":"https://avatars.githubusercontent.com/u/790497?v=3","gravatar_id":"","url":"https://api.github.com/users/Cript","html_url":"https://github.com/Cript","followers_url":"https://api.github.com/users/Cript/followers","following_url":"https://api.github.com/users/Cript/following{/other_user}","gists_url":"https://api.github.com/users/Cript/gists{/gist_id}","starred_url":"https://api.github.com/users/Cript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cript/subscriptions","organizations_url":"https://api.github.com/users/Cript/orgs","repos_url":"https://api.github.com/users/Cript/repos","events_url":"https://api.github.com/users/Cript/events{/privacy}","received_events_url":"https://api.github.com/users/Cript/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Cript/FOSRestBundle","description":"This Bundle provides various tools to rapidly develop RESTful API's with Symfony2","fork":true,"url":"https://api.github.com/repos/Cript/FOSRestBundle","forks_url":"https://api.github.com/repos/Cript/FOSRestBundle/forks","keys_url":"https://api.github.com/repos/Cript/FOSRestBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cript/FOSRestBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cript/FOSRestBundle/teams","hooks_url":"https://api.github.com/repos/Cript/FOSRestBundle/hooks","issue_events_url":"https://api.github.com/repos/Cript/FOSRestBundle/issues/events{/number}","events_url":"https://api.github.com/repos/Cript/FOSRestBundle/events","assignees_url":"https://api.github.com/repos/Cript/FOSRestBundle/assignees{/user}","branches_url":"https://api.github.com/repos/Cript/FOSRestBundle/branches{/branch}","tags_url":"https://api.github.com/repos/Cript/FOSRestBundle/tags","blobs_url":"https://api.github.com/repos/Cript/FOSRestBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cript/FOSRestBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cript/FOSRestBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cript/FOSRestBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cript/FOSRestBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/Cript/FOSRestBundle/languages","stargazers_url":"https://api.github.com/repos/Cript/FOSRestBundle/stargazers","contributors_url":"https://api.github.com/repos/Cript/FOSRestBundle/contributors","subscribers_url":"https://api.github.com/repos/Cript/FOSRestBundle/subscribers","subscription_url":"https://api.github.com/repos/Cript/FOSRestBundle/subscription","commits_url":"https://api.github.com/repos/Cript/FOSRestBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cript/FOSRestBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cript/FOSRestBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cript/FOSRestBundle/issues/comments/{number}","contents_url":"https://api.github.com/repos/Cript/FOSRestBundle/contents/{+path}","compare_url":"https://api.github.com/repos/Cript/FOSRestBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cript/FOSRestBundle/merges","archive_url":"https://api.github.com/repos/Cript/FOSRestBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cript/FOSRestBundle/downloads","issues_url":"https://api.github.com/repos/Cript/FOSRestBundle/issues{/number}","pulls_url":"https://api.github.com/repos/Cript/FOSRestBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/Cript/FOSRestBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/Cript/FOSRestBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cript/FOSRestBundle/labels{/name}","releases_url":"https://api.github.com/repos/Cript/FOSRestBundle/releases{/id}","created_at":"2015-01-15T22:11:16Z","updated_at":"2015-01-18T16:53:06Z","pushed_at":"2015-01-18T16:53:05Z","git_url":"git://github.com/Cript/FOSRestBundle.git","ssh_url":"git@github.com:Cript/FOSRestBundle.git","clone_url":"https://github.com/Cript/FOSRestBundle.git","svn_url":"https://github.com/Cript/FOSRestBundle","homepage":"http://friendsofsymfony.github.com/","size":2743,"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":"a893e785ae6e9ed37957be7247a8ad3b7d7527b7","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-02-09T12:14:51Z","pushed_at":"2015-02-09T12:24:14Z","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":5937,"stargazers_count":1066,"watchers_count":1066,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":427,"mirror_url":null,"open_issues_count":74,"forks":427,"open_issues":74,"watchers":1066,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/936"},"html":{"href":"https://github.com/FriendsOfSymfony/FOSRestBundle/pull/936"},"issue":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/936"},"comments":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/issues/936/comments"},"review_comments":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/936/comments"},"review_comment":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/pulls/936/commits"},"statuses":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/statuses/88bcd6a2d6aa30060473425b3c174f69ecf19dd3"}}}}