{"action":"created","comment":{"url":"https://api.github.com/repos/sparkphp/Project/pulls/comments/32592160","id":32592160,"diff_hunk":"@@ -6,6 +6,15 @@\n \n $app = Spark\\Application::boot();\n \n+$app->setMiddleware(function() {","path":"web/index.php","position":4,"original_position":4,"commit_id":"9b1fafaebc6544d7c2bcdf9c1419d51d950ba5b6","original_commit_id":"9b1fafaebc6544d7c2bcdf9c1419d51d950ba5b6","user":{"login":"shadowhand","id":38203,"avatar_url":"https://avatars.githubusercontent.com/u/38203?v=3","gravatar_id":"","url":"https://api.github.com/users/shadowhand","html_url":"https://github.com/shadowhand","followers_url":"https://api.github.com/users/shadowhand/followers","following_url":"https://api.github.com/users/shadowhand/following{/other_user}","gists_url":"https://api.github.com/users/shadowhand/gists{/gist_id}","starred_url":"https://api.github.com/users/shadowhand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadowhand/subscriptions","organizations_url":"https://api.github.com/users/shadowhand/orgs","repos_url":"https://api.github.com/users/shadowhand/repos","events_url":"https://api.github.com/users/shadowhand/events{/privacy}","received_events_url":"https://api.github.com/users/shadowhand/received_events","type":"User","site_admin":false},"body":"It doesn't really need to be a callback if it just returns an array.","created_at":"2015-06-17T03:05:09Z","updated_at":"2015-06-17T03:05:09Z","html_url":"https://github.com/sparkphp/Project/pull/2#discussion_r32592160","pull_request_url":"https://api.github.com/repos/sparkphp/Project/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/sparkphp/Project/pulls/comments/32592160"},"html":{"href":"https://github.com/sparkphp/Project/pull/2#discussion_r32592160"},"pull_request":{"href":"https://api.github.com/repos/sparkphp/Project/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/sparkphp/Project/pulls/2","id":37847243,"html_url":"https://github.com/sparkphp/Project/pull/2","diff_url":"https://github.com/sparkphp/Project/pull/2.diff","patch_url":"https://github.com/sparkphp/Project/pull/2.patch","issue_url":"https://api.github.com/repos/sparkphp/Project/issues/2","number":2,"state":"open","locked":false,"title":"Add middleware queue for new Relay library.","user":{"login":"dolfelt","id":202546,"avatar_url":"https://avatars.githubusercontent.com/u/202546?v=3","gravatar_id":"","url":"https://api.github.com/users/dolfelt","html_url":"https://github.com/dolfelt","followers_url":"https://api.github.com/users/dolfelt/followers","following_url":"https://api.github.com/users/dolfelt/following{/other_user}","gists_url":"https://api.github.com/users/dolfelt/gists{/gist_id}","starred_url":"https://api.github.com/users/dolfelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dolfelt/subscriptions","organizations_url":"https://api.github.com/users/dolfelt/orgs","repos_url":"https://api.github.com/users/dolfelt/repos","events_url":"https://api.github.com/users/dolfelt/events{/privacy}","received_events_url":"https://api.github.com/users/dolfelt/received_events","type":"User","site_admin":false},"body":"Needed for the changes in https://github.com/sparkphp/Spark/pull/17","created_at":"2015-06-16T22:08:23Z","updated_at":"2015-06-17T03:05:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb439833d1db607206d2da331f5fd8206186ac7d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sparkphp/Project/pulls/2/commits","review_comments_url":"https://api.github.com/repos/sparkphp/Project/pulls/2/comments","review_comment_url":"https://api.github.com/repos/sparkphp/Project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sparkphp/Project/issues/2/comments","statuses_url":"https://api.github.com/repos/sparkphp/Project/statuses/9b1fafaebc6544d7c2bcdf9c1419d51d950ba5b6","head":{"label":"sparkphp:feature/middleware","ref":"feature/middleware","sha":"9b1fafaebc6544d7c2bcdf9c1419d51d950ba5b6","user":{"login":"sparkphp","id":12573848,"avatar_url":"https://avatars.githubusercontent.com/u/12573848?v=3","gravatar_id":"","url":"https://api.github.com/users/sparkphp","html_url":"https://github.com/sparkphp","followers_url":"https://api.github.com/users/sparkphp/followers","following_url":"https://api.github.com/users/sparkphp/following{/other_user}","gists_url":"https://api.github.com/users/sparkphp/gists{/gist_id}","starred_url":"https://api.github.com/users/sparkphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparkphp/subscriptions","organizations_url":"https://api.github.com/users/sparkphp/orgs","repos_url":"https://api.github.com/users/sparkphp/repos","events_url":"https://api.github.com/users/sparkphp/events{/privacy}","received_events_url":"https://api.github.com/users/sparkphp/received_events","type":"Organization","site_admin":false},"repo":{"id":36235919,"name":"Project","full_name":"sparkphp/Project","owner":{"login":"sparkphp","id":12573848,"avatar_url":"https://avatars.githubusercontent.com/u/12573848?v=3","gravatar_id":"","url":"https://api.github.com/users/sparkphp","html_url":"https://github.com/sparkphp","followers_url":"https://api.github.com/users/sparkphp/followers","following_url":"https://api.github.com/users/sparkphp/following{/other_user}","gists_url":"https://api.github.com/users/sparkphp/gists{/gist_id}","starred_url":"https://api.github.com/users/sparkphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparkphp/subscriptions","organizations_url":"https://api.github.com/users/sparkphp/orgs","repos_url":"https://api.github.com/users/sparkphp/repos","events_url":"https://api.github.com/users/sparkphp/events{/privacy}","received_events_url":"https://api.github.com/users/sparkphp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sparkphp/Project","description":"","fork":false,"url":"https://api.github.com/repos/sparkphp/Project","forks_url":"https://api.github.com/repos/sparkphp/Project/forks","keys_url":"https://api.github.com/repos/sparkphp/Project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sparkphp/Project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sparkphp/Project/teams","hooks_url":"https://api.github.com/repos/sparkphp/Project/hooks","issue_events_url":"https://api.github.com/repos/sparkphp/Project/issues/events{/number}","events_url":"https://api.github.com/repos/sparkphp/Project/events","assignees_url":"https://api.github.com/repos/sparkphp/Project/assignees{/user}","branches_url":"https://api.github.com/repos/sparkphp/Project/branches{/branch}","tags_url":"https://api.github.com/repos/sparkphp/Project/tags","blobs_url":"https://api.github.com/repos/sparkphp/Project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sparkphp/Project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sparkphp/Project/git/refs{/sha}","trees_url":"https://api.github.com/repos/sparkphp/Project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sparkphp/Project/statuses/{sha}","languages_url":"https://api.github.com/repos/sparkphp/Project/languages","stargazers_url":"https://api.github.com/repos/sparkphp/Project/stargazers","contributors_url":"https://api.github.com/repos/sparkphp/Project/contributors","subscribers_url":"https://api.github.com/repos/sparkphp/Project/subscribers","subscription_url":"https://api.github.com/repos/sparkphp/Project/subscription","commits_url":"https://api.github.com/repos/sparkphp/Project/commits{/sha}","git_commits_url":"https://api.github.com/repos/sparkphp/Project/git/commits{/sha}","comments_url":"https://api.github.com/repos/sparkphp/Project/comments{/number}","issue_comment_url":"https://api.github.com/repos/sparkphp/Project/issues/comments{/number}","contents_url":"https://api.github.com/repos/sparkphp/Project/contents/{+path}","compare_url":"https://api.github.com/repos/sparkphp/Project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sparkphp/Project/merges","archive_url":"https://api.github.com/repos/sparkphp/Project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sparkphp/Project/downloads","issues_url":"https://api.github.com/repos/sparkphp/Project/issues{/number}","pulls_url":"https://api.github.com/repos/sparkphp/Project/pulls{/number}","milestones_url":"https://api.github.com/repos/sparkphp/Project/milestones{/number}","notifications_url":"https://api.github.com/repos/sparkphp/Project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sparkphp/Project/labels{/name}","releases_url":"https://api.github.com/repos/sparkphp/Project/releases{/id}","created_at":"2015-05-25T14:33:04Z","updated_at":"2015-06-01T13:00:27Z","pushed_at":"2015-06-16T22:08:24Z","git_url":"git://github.com/sparkphp/Project.git","ssh_url":"git@github.com:sparkphp/Project.git","clone_url":"https://github.com/sparkphp/Project.git","svn_url":"https://github.com/sparkphp/Project","homepage":null,"size":184,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":4,"default_branch":"master"}},"base":{"label":"sparkphp:master","ref":"master","sha":"c6693702d090426c577d174871d4e685990a4711","user":{"login":"sparkphp","id":12573848,"avatar_url":"https://avatars.githubusercontent.com/u/12573848?v=3","gravatar_id":"","url":"https://api.github.com/users/sparkphp","html_url":"https://github.com/sparkphp","followers_url":"https://api.github.com/users/sparkphp/followers","following_url":"https://api.github.com/users/sparkphp/following{/other_user}","gists_url":"https://api.github.com/users/sparkphp/gists{/gist_id}","starred_url":"https://api.github.com/users/sparkphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparkphp/subscriptions","organizations_url":"https://api.github.com/users/sparkphp/orgs","repos_url":"https://api.github.com/users/sparkphp/repos","events_url":"https://api.github.com/users/sparkphp/events{/privacy}","received_events_url":"https://api.github.com/users/sparkphp/received_events","type":"Organization","site_admin":false},"repo":{"id":36235919,"name":"Project","full_name":"sparkphp/Project","owner":{"login":"sparkphp","id":12573848,"avatar_url":"https://avatars.githubusercontent.com/u/12573848?v=3","gravatar_id":"","url":"https://api.github.com/users/sparkphp","html_url":"https://github.com/sparkphp","followers_url":"https://api.github.com/users/sparkphp/followers","following_url":"https://api.github.com/users/sparkphp/following{/other_user}","gists_url":"https://api.github.com/users/sparkphp/gists{/gist_id}","starred_url":"https://api.github.com/users/sparkphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparkphp/subscriptions","organizations_url":"https://api.github.com/users/sparkphp/orgs","repos_url":"https://api.github.com/users/sparkphp/repos","events_url":"https://api.github.com/users/sparkphp/events{/privacy}","received_events_url":"https://api.github.com/users/sparkphp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sparkphp/Project","description":"","fork":false,"url":"https://api.github.com/repos/sparkphp/Project","forks_url":"https://api.github.com/repos/sparkphp/Project/forks","keys_url":"https://api.github.com/repos/sparkphp/Project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sparkphp/Project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sparkphp/Project/teams","hooks_url":"https://api.github.com/repos/sparkphp/Project/hooks","issue_events_url":"https://api.github.com/repos/sparkphp/Project/issues/events{/number}","events_url":"https://api.github.com/repos/sparkphp/Project/events","assignees_url":"https://api.github.com/repos/sparkphp/Project/assignees{/user}","branches_url":"https://api.github.com/repos/sparkphp/Project/branches{/branch}","tags_url":"https://api.github.com/repos/sparkphp/Project/tags","blobs_url":"https://api.github.com/repos/sparkphp/Project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sparkphp/Project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sparkphp/Project/git/refs{/sha}","trees_url":"https://api.github.com/repos/sparkphp/Project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sparkphp/Project/statuses/{sha}","languages_url":"https://api.github.com/repos/sparkphp/Project/languages","stargazers_url":"https://api.github.com/repos/sparkphp/Project/stargazers","contributors_url":"https://api.github.com/repos/sparkphp/Project/contributors","subscribers_url":"https://api.github.com/repos/sparkphp/Project/subscribers","subscription_url":"https://api.github.com/repos/sparkphp/Project/subscription","commits_url":"https://api.github.com/repos/sparkphp/Project/commits{/sha}","git_commits_url":"https://api.github.com/repos/sparkphp/Project/git/commits{/sha}","comments_url":"https://api.github.com/repos/sparkphp/Project/comments{/number}","issue_comment_url":"https://api.github.com/repos/sparkphp/Project/issues/comments{/number}","contents_url":"https://api.github.com/repos/sparkphp/Project/contents/{+path}","compare_url":"https://api.github.com/repos/sparkphp/Project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sparkphp/Project/merges","archive_url":"https://api.github.com/repos/sparkphp/Project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sparkphp/Project/downloads","issues_url":"https://api.github.com/repos/sparkphp/Project/issues{/number}","pulls_url":"https://api.github.com/repos/sparkphp/Project/pulls{/number}","milestones_url":"https://api.github.com/repos/sparkphp/Project/milestones{/number}","notifications_url":"https://api.github.com/repos/sparkphp/Project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sparkphp/Project/labels{/name}","releases_url":"https://api.github.com/repos/sparkphp/Project/releases{/id}","created_at":"2015-05-25T14:33:04Z","updated_at":"2015-06-01T13:00:27Z","pushed_at":"2015-06-16T22:08:24Z","git_url":"git://github.com/sparkphp/Project.git","ssh_url":"git@github.com:sparkphp/Project.git","clone_url":"https://github.com/sparkphp/Project.git","svn_url":"https://github.com/sparkphp/Project","homepage":null,"size":184,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sparkphp/Project/pulls/2"},"html":{"href":"https://github.com/sparkphp/Project/pull/2"},"issue":{"href":"https://api.github.com/repos/sparkphp/Project/issues/2"},"comments":{"href":"https://api.github.com/repos/sparkphp/Project/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/sparkphp/Project/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/sparkphp/Project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sparkphp/Project/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/sparkphp/Project/statuses/9b1fafaebc6544d7c2bcdf9c1419d51d950ba5b6"}}}}