{"action":"created","comment":{"url":"https://api.github.com/repos/kalehrishi/notes/pulls/comments/28494274","id":28494274,"diff_hunk":"@@ -0,0 +1,33 @@\n+<?php\n+namespace Notes\\Controller\\Web;\n+\n+use Notes\\View\\View as View;\n+use Notes\\Service\\Note as NoteService;\n+use Notes\\Response\\Response as Response;\n+use Notes\\Request\\Request as Request;\n+\n+class Note\n+{\n+    protected $request;\n+    protected $view;\n+    public function __construct($request)\n+    {\n+        $this->request = $request;\n+        $this->view    = new View();\n+    }\n+    public function get()\n+    {\n+        $input = $this->request->getCookies()['userId'];\n+        ","path":"app/Controller/Web/Note.php","position":21,"original_position":21,"commit_id":"4ab7494273509ab131657634513c388c6afe0ce7","original_commit_id":"4ab7494273509ab131657634513c388c6afe0ce7","user":{"login":"kalehrishi","id":517439,"avatar_url":"https://avatars.githubusercontent.com/u/517439?v=3","gravatar_id":"","url":"https://api.github.com/users/kalehrishi","html_url":"https://github.com/kalehrishi","followers_url":"https://api.github.com/users/kalehrishi/followers","following_url":"https://api.github.com/users/kalehrishi/following{/other_user}","gists_url":"https://api.github.com/users/kalehrishi/gists{/gist_id}","starred_url":"https://api.github.com/users/kalehrishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalehrishi/subscriptions","organizations_url":"https://api.github.com/users/kalehrishi/orgs","repos_url":"https://api.github.com/users/kalehrishi/repos","events_url":"https://api.github.com/users/kalehrishi/events{/privacy}","received_events_url":"https://api.github.com/users/kalehrishi/received_events","type":"User","site_admin":false},"body":"Need to validate session before user can read notes.","created_at":"2015-04-16T09:11:24Z","updated_at":"2015-04-16T09:11:24Z","html_url":"https://github.com/kalehrishi/notes/pull/81#discussion_r28494274","pull_request_url":"https://api.github.com/repos/kalehrishi/notes/pulls/81","_links":{"self":{"href":"https://api.github.com/repos/kalehrishi/notes/pulls/comments/28494274"},"html":{"href":"https://github.com/kalehrishi/notes/pull/81#discussion_r28494274"},"pull_request":{"href":"https://api.github.com/repos/kalehrishi/notes/pulls/81"}}},"pull_request":{"url":"https://api.github.com/repos/kalehrishi/notes/pulls/81","id":33348465,"html_url":"https://github.com/kalehrishi/notes/pull/81","diff_url":"https://github.com/kalehrishi/notes/pull/81.diff","patch_url":"https://github.com/kalehrishi/notes/pull/81.patch","issue_url":"https://api.github.com/repos/kalehrishi/notes/issues/81","number":81,"state":"open","locked":false,"title":"Logout and Note Controller","user":{"login":"pushpalata06","id":10380956,"avatar_url":"https://avatars.githubusercontent.com/u/10380956?v=3","gravatar_id":"","url":"https://api.github.com/users/pushpalata06","html_url":"https://github.com/pushpalata06","followers_url":"https://api.github.com/users/pushpalata06/followers","following_url":"https://api.github.com/users/pushpalata06/following{/other_user}","gists_url":"https://api.github.com/users/pushpalata06/gists{/gist_id}","starred_url":"https://api.github.com/users/pushpalata06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pushpalata06/subscriptions","organizations_url":"https://api.github.com/users/pushpalata06/orgs","repos_url":"https://api.github.com/users/pushpalata06/repos","events_url":"https://api.github.com/users/pushpalata06/events{/privacy}","received_events_url":"https://api.github.com/users/pushpalata06/received_events","type":"User","site_admin":false},"body":"\r\n@kalehrishi \r\n@amitheda \r\n@gauribhapkar \r\n@anushamh ","created_at":"2015-04-15T12:15:16Z","updated_at":"2015-04-16T09:11:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bea2b36b38d9b518742a10f4e8e7a2c6c1bbd912","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kalehrishi/notes/pulls/81/commits","review_comments_url":"https://api.github.com/repos/kalehrishi/notes/pulls/81/comments","review_comment_url":"https://api.github.com/repos/kalehrishi/notes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kalehrishi/notes/issues/81/comments","statuses_url":"https://api.github.com/repos/kalehrishi/notes/statuses/4ab7494273509ab131657634513c388c6afe0ce7","head":{"label":"kalehrishi:logout-controller","ref":"logout-controller","sha":"4ab7494273509ab131657634513c388c6afe0ce7","user":{"login":"kalehrishi","id":517439,"avatar_url":"https://avatars.githubusercontent.com/u/517439?v=3","gravatar_id":"","url":"https://api.github.com/users/kalehrishi","html_url":"https://github.com/kalehrishi","followers_url":"https://api.github.com/users/kalehrishi/followers","following_url":"https://api.github.com/users/kalehrishi/following{/other_user}","gists_url":"https://api.github.com/users/kalehrishi/gists{/gist_id}","starred_url":"https://api.github.com/users/kalehrishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalehrishi/subscriptions","organizations_url":"https://api.github.com/users/kalehrishi/orgs","repos_url":"https://api.github.com/users/kalehrishi/repos","events_url":"https://api.github.com/users/kalehrishi/events{/privacy}","received_events_url":"https://api.github.com/users/kalehrishi/received_events","type":"User","site_admin":false},"repo":{"id":29454455,"name":"notes","full_name":"kalehrishi/notes","owner":{"login":"kalehrishi","id":517439,"avatar_url":"https://avatars.githubusercontent.com/u/517439?v=3","gravatar_id":"","url":"https://api.github.com/users/kalehrishi","html_url":"https://github.com/kalehrishi","followers_url":"https://api.github.com/users/kalehrishi/followers","following_url":"https://api.github.com/users/kalehrishi/following{/other_user}","gists_url":"https://api.github.com/users/kalehrishi/gists{/gist_id}","starred_url":"https://api.github.com/users/kalehrishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalehrishi/subscriptions","organizations_url":"https://api.github.com/users/kalehrishi/orgs","repos_url":"https://api.github.com/users/kalehrishi/repos","events_url":"https://api.github.com/users/kalehrishi/events{/privacy}","received_events_url":"https://api.github.com/users/kalehrishi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kalehrishi/notes","description":"a simple note taking app","fork":false,"url":"https://api.github.com/repos/kalehrishi/notes","forks_url":"https://api.github.com/repos/kalehrishi/notes/forks","keys_url":"https://api.github.com/repos/kalehrishi/notes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kalehrishi/notes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kalehrishi/notes/teams","hooks_url":"https://api.github.com/repos/kalehrishi/notes/hooks","issue_events_url":"https://api.github.com/repos/kalehrishi/notes/issues/events{/number}","events_url":"https://api.github.com/repos/kalehrishi/notes/events","assignees_url":"https://api.github.com/repos/kalehrishi/notes/assignees{/user}","branches_url":"https://api.github.com/repos/kalehrishi/notes/branches{/branch}","tags_url":"https://api.github.com/repos/kalehrishi/notes/tags","blobs_url":"https://api.github.com/repos/kalehrishi/notes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kalehrishi/notes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kalehrishi/notes/git/refs{/sha}","trees_url":"https://api.github.com/repos/kalehrishi/notes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kalehrishi/notes/statuses/{sha}","languages_url":"https://api.github.com/repos/kalehrishi/notes/languages","stargazers_url":"https://api.github.com/repos/kalehrishi/notes/stargazers","contributors_url":"https://api.github.com/repos/kalehrishi/notes/contributors","subscribers_url":"https://api.github.com/repos/kalehrishi/notes/subscribers","subscription_url":"https://api.github.com/repos/kalehrishi/notes/subscription","commits_url":"https://api.github.com/repos/kalehrishi/notes/commits{/sha}","git_commits_url":"https://api.github.com/repos/kalehrishi/notes/git/commits{/sha}","comments_url":"https://api.github.com/repos/kalehrishi/notes/comments{/number}","issue_comment_url":"https://api.github.com/repos/kalehrishi/notes/issues/comments{/number}","contents_url":"https://api.github.com/repos/kalehrishi/notes/contents/{+path}","compare_url":"https://api.github.com/repos/kalehrishi/notes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kalehrishi/notes/merges","archive_url":"https://api.github.com/repos/kalehrishi/notes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kalehrishi/notes/downloads","issues_url":"https://api.github.com/repos/kalehrishi/notes/issues{/number}","pulls_url":"https://api.github.com/repos/kalehrishi/notes/pulls{/number}","milestones_url":"https://api.github.com/repos/kalehrishi/notes/milestones{/number}","notifications_url":"https://api.github.com/repos/kalehrishi/notes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kalehrishi/notes/labels{/name}","releases_url":"https://api.github.com/repos/kalehrishi/notes/releases{/id}","created_at":"2015-01-19T04:59:50Z","updated_at":"2015-04-13T05:12:02Z","pushed_at":"2015-04-16T08:55:04Z","git_url":"git://github.com/kalehrishi/notes.git","ssh_url":"git@github.com:kalehrishi/notes.git","clone_url":"https://github.com/kalehrishi/notes.git","svn_url":"https://github.com/kalehrishi/notes","homepage":null,"size":8396,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":18,"forks":0,"open_issues":18,"watchers":1,"default_branch":"master"}},"base":{"label":"kalehrishi:master","ref":"master","sha":"820ad729493dd022f6901ca2a959c0d5ef792bbb","user":{"login":"kalehrishi","id":517439,"avatar_url":"https://avatars.githubusercontent.com/u/517439?v=3","gravatar_id":"","url":"https://api.github.com/users/kalehrishi","html_url":"https://github.com/kalehrishi","followers_url":"https://api.github.com/users/kalehrishi/followers","following_url":"https://api.github.com/users/kalehrishi/following{/other_user}","gists_url":"https://api.github.com/users/kalehrishi/gists{/gist_id}","starred_url":"https://api.github.com/users/kalehrishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalehrishi/subscriptions","organizations_url":"https://api.github.com/users/kalehrishi/orgs","repos_url":"https://api.github.com/users/kalehrishi/repos","events_url":"https://api.github.com/users/kalehrishi/events{/privacy}","received_events_url":"https://api.github.com/users/kalehrishi/received_events","type":"User","site_admin":false},"repo":{"id":29454455,"name":"notes","full_name":"kalehrishi/notes","owner":{"login":"kalehrishi","id":517439,"avatar_url":"https://avatars.githubusercontent.com/u/517439?v=3","gravatar_id":"","url":"https://api.github.com/users/kalehrishi","html_url":"https://github.com/kalehrishi","followers_url":"https://api.github.com/users/kalehrishi/followers","following_url":"https://api.github.com/users/kalehrishi/following{/other_user}","gists_url":"https://api.github.com/users/kalehrishi/gists{/gist_id}","starred_url":"https://api.github.com/users/kalehrishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalehrishi/subscriptions","organizations_url":"https://api.github.com/users/kalehrishi/orgs","repos_url":"https://api.github.com/users/kalehrishi/repos","events_url":"https://api.github.com/users/kalehrishi/events{/privacy}","received_events_url":"https://api.github.com/users/kalehrishi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kalehrishi/notes","description":"a simple note taking app","fork":false,"url":"https://api.github.com/repos/kalehrishi/notes","forks_url":"https://api.github.com/repos/kalehrishi/notes/forks","keys_url":"https://api.github.com/repos/kalehrishi/notes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kalehrishi/notes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kalehrishi/notes/teams","hooks_url":"https://api.github.com/repos/kalehrishi/notes/hooks","issue_events_url":"https://api.github.com/repos/kalehrishi/notes/issues/events{/number}","events_url":"https://api.github.com/repos/kalehrishi/notes/events","assignees_url":"https://api.github.com/repos/kalehrishi/notes/assignees{/user}","branches_url":"https://api.github.com/repos/kalehrishi/notes/branches{/branch}","tags_url":"https://api.github.com/repos/kalehrishi/notes/tags","blobs_url":"https://api.github.com/repos/kalehrishi/notes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kalehrishi/notes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kalehrishi/notes/git/refs{/sha}","trees_url":"https://api.github.com/repos/kalehrishi/notes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kalehrishi/notes/statuses/{sha}","languages_url":"https://api.github.com/repos/kalehrishi/notes/languages","stargazers_url":"https://api.github.com/repos/kalehrishi/notes/stargazers","contributors_url":"https://api.github.com/repos/kalehrishi/notes/contributors","subscribers_url":"https://api.github.com/repos/kalehrishi/notes/subscribers","subscription_url":"https://api.github.com/repos/kalehrishi/notes/subscription","commits_url":"https://api.github.com/repos/kalehrishi/notes/commits{/sha}","git_commits_url":"https://api.github.com/repos/kalehrishi/notes/git/commits{/sha}","comments_url":"https://api.github.com/repos/kalehrishi/notes/comments{/number}","issue_comment_url":"https://api.github.com/repos/kalehrishi/notes/issues/comments{/number}","contents_url":"https://api.github.com/repos/kalehrishi/notes/contents/{+path}","compare_url":"https://api.github.com/repos/kalehrishi/notes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kalehrishi/notes/merges","archive_url":"https://api.github.com/repos/kalehrishi/notes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kalehrishi/notes/downloads","issues_url":"https://api.github.com/repos/kalehrishi/notes/issues{/number}","pulls_url":"https://api.github.com/repos/kalehrishi/notes/pulls{/number}","milestones_url":"https://api.github.com/repos/kalehrishi/notes/milestones{/number}","notifications_url":"https://api.github.com/repos/kalehrishi/notes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kalehrishi/notes/labels{/name}","releases_url":"https://api.github.com/repos/kalehrishi/notes/releases{/id}","created_at":"2015-01-19T04:59:50Z","updated_at":"2015-04-13T05:12:02Z","pushed_at":"2015-04-16T08:55:04Z","git_url":"git://github.com/kalehrishi/notes.git","ssh_url":"git@github.com:kalehrishi/notes.git","clone_url":"https://github.com/kalehrishi/notes.git","svn_url":"https://github.com/kalehrishi/notes","homepage":null,"size":8396,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":18,"forks":0,"open_issues":18,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kalehrishi/notes/pulls/81"},"html":{"href":"https://github.com/kalehrishi/notes/pull/81"},"issue":{"href":"https://api.github.com/repos/kalehrishi/notes/issues/81"},"comments":{"href":"https://api.github.com/repos/kalehrishi/notes/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/kalehrishi/notes/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/kalehrishi/notes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kalehrishi/notes/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/kalehrishi/notes/statuses/4ab7494273509ab131657634513c388c6afe0ce7"}}}}