{"action":"created","comment":{"url":"https://api.github.com/repos/phpdndiscussion/discussion/pulls/comments/95072278","pull_request_review_id":15618167,"id":95072278,"diff_hunk":"@@ -0,0 +1,23 @@\n+<?php\n+\n+namespace Discussion;\n+\n+use Discussion\\Application;\n+use Discussion\\Providers\\ServiceProvider;\n+use Silex\\Application as SilexApplication;\n+\n+class Module extends SilexApplication\n+{\n+    public function __construct($root, array $values = [])\n+    {\n+        parent::__construct($values);\n+\n+        $this->register(new ServiceProvider($root));\n+    }\n+\n+    public function init(Application $app)\n+    {\n+        $this['parent'] = $app;\n+        $app['controllers']->mount($this['config']['uriprefix'] ?? '', $this['controllers']);","path":"app/src/Module.php","position":21,"original_position":21,"commit_id":"06af50b510fb54b0938dd6060239bb5dfd322808","original_commit_id":"06af50b510fb54b0938dd6060239bb5dfd322808","user":{"login":"requinix","id":995140,"avatar_url":"https://avatars.githubusercontent.com/u/995140?v=3","gravatar_id":"","url":"https://api.github.com/users/requinix","html_url":"https://github.com/requinix","followers_url":"https://api.github.com/users/requinix/followers","following_url":"https://api.github.com/users/requinix/following{/other_user}","gists_url":"https://api.github.com/users/requinix/gists{/gist_id}","starred_url":"https://api.github.com/users/requinix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/requinix/subscriptions","organizations_url":"https://api.github.com/users/requinix/orgs","repos_url":"https://api.github.com/users/requinix/repos","events_url":"https://api.github.com/users/requinix/events{/privacy}","received_events_url":"https://api.github.com/users/requinix/received_events","type":"User","site_admin":false},"body":"Module's routes are \"mounted\" into the parent application, so `$module->get('/path'...)` works on its own but can be executed as if `$app->get('/prefix/path'...)`.","created_at":"2017-01-08T05:53:10Z","updated_at":"2017-01-08T05:53:10Z","html_url":"https://github.com/phpdndiscussion/discussion/pull/2#discussion_r95072278","pull_request_url":"https://api.github.com/repos/phpdndiscussion/discussion/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/phpdndiscussion/discussion/pulls/comments/95072278"},"html":{"href":"https://github.com/phpdndiscussion/discussion/pull/2#discussion_r95072278"},"pull_request":{"href":"https://api.github.com/repos/phpdndiscussion/discussion/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/phpdndiscussion/discussion/pulls/2","id":100593056,"html_url":"https://github.com/phpdndiscussion/discussion/pull/2","diff_url":"https://github.com/phpdndiscussion/discussion/pull/2.diff","patch_url":"https://github.com/phpdndiscussion/discussion/pull/2.patch","issue_url":"https://api.github.com/repos/phpdndiscussion/discussion/issues/2","number":2,"state":"open","locked":false,"title":"Rough draft of routing","user":{"login":"requinix","id":995140,"avatar_url":"https://avatars.githubusercontent.com/u/995140?v=3","gravatar_id":"","url":"https://api.github.com/users/requinix","html_url":"https://github.com/requinix","followers_url":"https://api.github.com/users/requinix/followers","following_url":"https://api.github.com/users/requinix/following{/other_user}","gists_url":"https://api.github.com/users/requinix/gists{/gist_id}","starred_url":"https://api.github.com/users/requinix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/requinix/subscriptions","organizations_url":"https://api.github.com/users/requinix/orgs","repos_url":"https://api.github.com/users/requinix/repos","events_url":"https://api.github.com/users/requinix/events{/privacy}","received_events_url":"https://api.github.com/users/requinix/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-01-08T05:47:25Z","updated_at":"2017-01-08T05:53:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ea5da7a2387a27d5cf3ebf6bc2d1282ee28dade","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/phpdndiscussion/discussion/pulls/2/commits","review_comments_url":"https://api.github.com/repos/phpdndiscussion/discussion/pulls/2/comments","review_comment_url":"https://api.github.com/repos/phpdndiscussion/discussion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/phpdndiscussion/discussion/issues/2/comments","statuses_url":"https://api.github.com/repos/phpdndiscussion/discussion/statuses/06af50b510fb54b0938dd6060239bb5dfd322808","head":{"label":"phpdndiscussion:rough-draft-routing","ref":"rough-draft-routing","sha":"06af50b510fb54b0938dd6060239bb5dfd322808","user":{"login":"phpdndiscussion","id":24518889,"avatar_url":"https://avatars.githubusercontent.com/u/24518889?v=3","gravatar_id":"","url":"https://api.github.com/users/phpdndiscussion","html_url":"https://github.com/phpdndiscussion","followers_url":"https://api.github.com/users/phpdndiscussion/followers","following_url":"https://api.github.com/users/phpdndiscussion/following{/other_user}","gists_url":"https://api.github.com/users/phpdndiscussion/gists{/gist_id}","starred_url":"https://api.github.com/users/phpdndiscussion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpdndiscussion/subscriptions","organizations_url":"https://api.github.com/users/phpdndiscussion/orgs","repos_url":"https://api.github.com/users/phpdndiscussion/repos","events_url":"https://api.github.com/users/phpdndiscussion/events{/privacy}","received_events_url":"https://api.github.com/users/phpdndiscussion/received_events","type":"Organization","site_admin":false},"repo":{"id":76432139,"name":"discussion","full_name":"phpdndiscussion/discussion","owner":{"login":"phpdndiscussion","id":24518889,"avatar_url":"https://avatars.githubusercontent.com/u/24518889?v=3","gravatar_id":"","url":"https://api.github.com/users/phpdndiscussion","html_url":"https://github.com/phpdndiscussion","followers_url":"https://api.github.com/users/phpdndiscussion/followers","following_url":"https://api.github.com/users/phpdndiscussion/following{/other_user}","gists_url":"https://api.github.com/users/phpdndiscussion/gists{/gist_id}","starred_url":"https://api.github.com/users/phpdndiscussion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpdndiscussion/subscriptions","organizations_url":"https://api.github.com/users/phpdndiscussion/orgs","repos_url":"https://api.github.com/users/phpdndiscussion/repos","events_url":"https://api.github.com/users/phpdndiscussion/events{/privacy}","received_events_url":"https://api.github.com/users/phpdndiscussion/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/phpdndiscussion/discussion","description":"???","fork":false,"url":"https://api.github.com/repos/phpdndiscussion/discussion","forks_url":"https://api.github.com/repos/phpdndiscussion/discussion/forks","keys_url":"https://api.github.com/repos/phpdndiscussion/discussion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phpdndiscussion/discussion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phpdndiscussion/discussion/teams","hooks_url":"https://api.github.com/repos/phpdndiscussion/discussion/hooks","issue_events_url":"https://api.github.com/repos/phpdndiscussion/discussion/issues/events{/number}","events_url":"https://api.github.com/repos/phpdndiscussion/discussion/events","assignees_url":"https://api.github.com/repos/phpdndiscussion/discussion/assignees{/user}","branches_url":"https://api.github.com/repos/phpdndiscussion/discussion/branches{/branch}","tags_url":"https://api.github.com/repos/phpdndiscussion/discussion/tags","blobs_url":"https://api.github.com/repos/phpdndiscussion/discussion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phpdndiscussion/discussion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phpdndiscussion/discussion/git/refs{/sha}","trees_url":"https://api.github.com/repos/phpdndiscussion/discussion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phpdndiscussion/discussion/statuses/{sha}","languages_url":"https://api.github.com/repos/phpdndiscussion/discussion/languages","stargazers_url":"https://api.github.com/repos/phpdndiscussion/discussion/stargazers","contributors_url":"https://api.github.com/repos/phpdndiscussion/discussion/contributors","subscribers_url":"https://api.github.com/repos/phpdndiscussion/discussion/subscribers","subscription_url":"https://api.github.com/repos/phpdndiscussion/discussion/subscription","commits_url":"https://api.github.com/repos/phpdndiscussion/discussion/commits{/sha}","git_commits_url":"https://api.github.com/repos/phpdndiscussion/discussion/git/commits{/sha}","comments_url":"https://api.github.com/repos/phpdndiscussion/discussion/comments{/number}","issue_comment_url":"https://api.github.com/repos/phpdndiscussion/discussion/issues/comments{/number}","contents_url":"https://api.github.com/repos/phpdndiscussion/discussion/contents/{+path}","compare_url":"https://api.github.com/repos/phpdndiscussion/discussion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phpdndiscussion/discussion/merges","archive_url":"https://api.github.com/repos/phpdndiscussion/discussion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phpdndiscussion/discussion/downloads","issues_url":"https://api.github.com/repos/phpdndiscussion/discussion/issues{/number}","pulls_url":"https://api.github.com/repos/phpdndiscussion/discussion/pulls{/number}","milestones_url":"https://api.github.com/repos/phpdndiscussion/discussion/milestones{/number}","notifications_url":"https://api.github.com/repos/phpdndiscussion/discussion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phpdndiscussion/discussion/labels{/name}","releases_url":"https://api.github.com/repos/phpdndiscussion/discussion/releases{/id}","deployments_url":"https://api.github.com/repos/phpdndiscussion/discussion/deployments","created_at":"2016-12-14T06:38:32Z","updated_at":"2016-12-14T06:38:32Z","pushed_at":"2017-01-08T05:47:26Z","git_url":"git://github.com/phpdndiscussion/discussion.git","ssh_url":"git@github.com:phpdndiscussion/discussion.git","clone_url":"https://github.com/phpdndiscussion/discussion.git","svn_url":"https://github.com/phpdndiscussion/discussion","homepage":null,"size":20,"stargazers_count":0,"watchers_count":0,"language":null,"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":0,"default_branch":"master"}},"base":{"label":"phpdndiscussion:rough-draft","ref":"rough-draft","sha":"a6d484d77346dc7a393da865ee9ee2e831c01d4f","user":{"login":"phpdndiscussion","id":24518889,"avatar_url":"https://avatars.githubusercontent.com/u/24518889?v=3","gravatar_id":"","url":"https://api.github.com/users/phpdndiscussion","html_url":"https://github.com/phpdndiscussion","followers_url":"https://api.github.com/users/phpdndiscussion/followers","following_url":"https://api.github.com/users/phpdndiscussion/following{/other_user}","gists_url":"https://api.github.com/users/phpdndiscussion/gists{/gist_id}","starred_url":"https://api.github.com/users/phpdndiscussion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpdndiscussion/subscriptions","organizations_url":"https://api.github.com/users/phpdndiscussion/orgs","repos_url":"https://api.github.com/users/phpdndiscussion/repos","events_url":"https://api.github.com/users/phpdndiscussion/events{/privacy}","received_events_url":"https://api.github.com/users/phpdndiscussion/received_events","type":"Organization","site_admin":false},"repo":{"id":76432139,"name":"discussion","full_name":"phpdndiscussion/discussion","owner":{"login":"phpdndiscussion","id":24518889,"avatar_url":"https://avatars.githubusercontent.com/u/24518889?v=3","gravatar_id":"","url":"https://api.github.com/users/phpdndiscussion","html_url":"https://github.com/phpdndiscussion","followers_url":"https://api.github.com/users/phpdndiscussion/followers","following_url":"https://api.github.com/users/phpdndiscussion/following{/other_user}","gists_url":"https://api.github.com/users/phpdndiscussion/gists{/gist_id}","starred_url":"https://api.github.com/users/phpdndiscussion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpdndiscussion/subscriptions","organizations_url":"https://api.github.com/users/phpdndiscussion/orgs","repos_url":"https://api.github.com/users/phpdndiscussion/repos","events_url":"https://api.github.com/users/phpdndiscussion/events{/privacy}","received_events_url":"https://api.github.com/users/phpdndiscussion/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/phpdndiscussion/discussion","description":"???","fork":false,"url":"https://api.github.com/repos/phpdndiscussion/discussion","forks_url":"https://api.github.com/repos/phpdndiscussion/discussion/forks","keys_url":"https://api.github.com/repos/phpdndiscussion/discussion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phpdndiscussion/discussion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phpdndiscussion/discussion/teams","hooks_url":"https://api.github.com/repos/phpdndiscussion/discussion/hooks","issue_events_url":"https://api.github.com/repos/phpdndiscussion/discussion/issues/events{/number}","events_url":"https://api.github.com/repos/phpdndiscussion/discussion/events","assignees_url":"https://api.github.com/repos/phpdndiscussion/discussion/assignees{/user}","branches_url":"https://api.github.com/repos/phpdndiscussion/discussion/branches{/branch}","tags_url":"https://api.github.com/repos/phpdndiscussion/discussion/tags","blobs_url":"https://api.github.com/repos/phpdndiscussion/discussion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phpdndiscussion/discussion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phpdndiscussion/discussion/git/refs{/sha}","trees_url":"https://api.github.com/repos/phpdndiscussion/discussion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phpdndiscussion/discussion/statuses/{sha}","languages_url":"https://api.github.com/repos/phpdndiscussion/discussion/languages","stargazers_url":"https://api.github.com/repos/phpdndiscussion/discussion/stargazers","contributors_url":"https://api.github.com/repos/phpdndiscussion/discussion/contributors","subscribers_url":"https://api.github.com/repos/phpdndiscussion/discussion/subscribers","subscription_url":"https://api.github.com/repos/phpdndiscussion/discussion/subscription","commits_url":"https://api.github.com/repos/phpdndiscussion/discussion/commits{/sha}","git_commits_url":"https://api.github.com/repos/phpdndiscussion/discussion/git/commits{/sha}","comments_url":"https://api.github.com/repos/phpdndiscussion/discussion/comments{/number}","issue_comment_url":"https://api.github.com/repos/phpdndiscussion/discussion/issues/comments{/number}","contents_url":"https://api.github.com/repos/phpdndiscussion/discussion/contents/{+path}","compare_url":"https://api.github.com/repos/phpdndiscussion/discussion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phpdndiscussion/discussion/merges","archive_url":"https://api.github.com/repos/phpdndiscussion/discussion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phpdndiscussion/discussion/downloads","issues_url":"https://api.github.com/repos/phpdndiscussion/discussion/issues{/number}","pulls_url":"https://api.github.com/repos/phpdndiscussion/discussion/pulls{/number}","milestones_url":"https://api.github.com/repos/phpdndiscussion/discussion/milestones{/number}","notifications_url":"https://api.github.com/repos/phpdndiscussion/discussion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phpdndiscussion/discussion/labels{/name}","releases_url":"https://api.github.com/repos/phpdndiscussion/discussion/releases{/id}","deployments_url":"https://api.github.com/repos/phpdndiscussion/discussion/deployments","created_at":"2016-12-14T06:38:32Z","updated_at":"2016-12-14T06:38:32Z","pushed_at":"2017-01-08T05:47:26Z","git_url":"git://github.com/phpdndiscussion/discussion.git","ssh_url":"git@github.com:phpdndiscussion/discussion.git","clone_url":"https://github.com/phpdndiscussion/discussion.git","svn_url":"https://github.com/phpdndiscussion/discussion","homepage":null,"size":20,"stargazers_count":0,"watchers_count":0,"language":null,"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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/phpdndiscussion/discussion/pulls/2"},"html":{"href":"https://github.com/phpdndiscussion/discussion/pull/2"},"issue":{"href":"https://api.github.com/repos/phpdndiscussion/discussion/issues/2"},"comments":{"href":"https://api.github.com/repos/phpdndiscussion/discussion/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/phpdndiscussion/discussion/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/phpdndiscussion/discussion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/phpdndiscussion/discussion/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/phpdndiscussion/discussion/statuses/06af50b510fb54b0938dd6060239bb5dfd322808"}}}}
{"actor":{"display_login":"requinix"}}