{"action":"created","comment":{"url":"https://api.github.com/repos/thephpleague/glide/pulls/comments/48111703","id":48111703,"diff_hunk":"@@ -0,0 +1,36 @@\n+<?php\n+\n+$loader = require '../vendor/autoload.php';\n+\n+// Set manipulators\n+$manipulators = [\n+    new League\\Glide\\Manipulators\\Size(2000*2000),\n+    new League\\Glide\\Manipulators\\Encode(),\n+];\n+\n+// Set image manager\n+$imageManager = new Intervention\\Image\\ImageManager([\n+    'driver' => 'imagick',\n+]);\n+\n+// Set API\n+$api = new League\\Glide\\Api\\Api($imageManager, $manipulators);\n+\n+// Set image source\n+$source = new League\\Flysystem\\Filesystem(\n+    new League\\Flysystem\\Adapter\\Local('/var/lib/glide/master')\n+);\n+\n+// Set image cache\n+$cache = new League\\Flysystem\\Filesystem(\n+    new League\\Flysystem\\Adapter\\Local('/var/lib/glide/cache')\n+);\n+\n+// Setup Glide server\n+$server = new League\\Glide\\Server($source, $cache, $api);\n+\n+$urlComponents = parse_url($_SERVER['REQUEST_URI'] );\n+parse_str($urlComponents['query'], $query);\n+$server->outputImage( $urlComponents['path'], $query);","path":"ext/index.php","position":34,"original_position":34,"commit_id":"c74f7995d8b5d969d25e28838667c264ead0c881","original_commit_id":"c74f7995d8b5d969d25e28838667c264ead0c881","user":{"login":"Nitpick-CI","id":12626182,"avatar_url":"https://avatars.githubusercontent.com/u/12626182?v=3","gravatar_id":"","url":"https://api.github.com/users/Nitpick-CI","html_url":"https://github.com/Nitpick-CI","followers_url":"https://api.github.com/users/Nitpick-CI/followers","following_url":"https://api.github.com/users/Nitpick-CI/following{/other_user}","gists_url":"https://api.github.com/users/Nitpick-CI/gists{/gist_id}","starred_url":"https://api.github.com/users/Nitpick-CI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nitpick-CI/subscriptions","organizations_url":"https://api.github.com/users/Nitpick-CI/orgs","repos_url":"https://api.github.com/users/Nitpick-CI/repos","events_url":"https://api.github.com/users/Nitpick-CI/events{/privacy}","received_events_url":"https://api.github.com/users/Nitpick-CI/received_events","type":"User","site_admin":false},"body":"Space after opening parenthesis of function call prohibited","created_at":"2015-12-21T01:22:22Z","updated_at":"2015-12-21T01:22:22Z","html_url":"https://github.com/thephpleague/glide/pull/113#discussion_r48111703","pull_request_url":"https://api.github.com/repos/thephpleague/glide/pulls/113","_links":{"self":{"href":"https://api.github.com/repos/thephpleague/glide/pulls/comments/48111703"},"html":{"href":"https://github.com/thephpleague/glide/pull/113#discussion_r48111703"},"pull_request":{"href":"https://api.github.com/repos/thephpleague/glide/pulls/113"}}},"pull_request":{"url":"https://api.github.com/repos/thephpleague/glide/pulls/113","id":54213368,"html_url":"https://github.com/thephpleague/glide/pull/113","diff_url":"https://github.com/thephpleague/glide/pull/113.diff","patch_url":"https://github.com/thephpleague/glide/pull/113.patch","issue_url":"https://api.github.com/repos/thephpleague/glide/issues/113","number":113,"state":"open","locked":false,"title":"Added Dockerfile to jump start the curious","user":{"login":"fschaper","id":579327,"avatar_url":"https://avatars.githubusercontent.com/u/579327?v=3","gravatar_id":"","url":"https://api.github.com/users/fschaper","html_url":"https://github.com/fschaper","followers_url":"https://api.github.com/users/fschaper/followers","following_url":"https://api.github.com/users/fschaper/following{/other_user}","gists_url":"https://api.github.com/users/fschaper/gists{/gist_id}","starred_url":"https://api.github.com/users/fschaper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fschaper/subscriptions","organizations_url":"https://api.github.com/users/fschaper/orgs","repos_url":"https://api.github.com/users/fschaper/repos","events_url":"https://api.github.com/users/fschaper/events{/privacy}","received_events_url":"https://api.github.com/users/fschaper/received_events","type":"User","site_admin":false},"body":"Added a Dockerfile so that people interested in glide can take a quick peek.","created_at":"2015-12-21T01:22:21Z","updated_at":"2015-12-21T01:22:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1533fcbb455ab97dee16a55584d4ad434eb0af86","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thephpleague/glide/pulls/113/commits","review_comments_url":"https://api.github.com/repos/thephpleague/glide/pulls/113/comments","review_comment_url":"https://api.github.com/repos/thephpleague/glide/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thephpleague/glide/issues/113/comments","statuses_url":"https://api.github.com/repos/thephpleague/glide/statuses/c74f7995d8b5d969d25e28838667c264ead0c881","head":{"label":"fschaper:feature/dockerization","ref":"feature/dockerization","sha":"c74f7995d8b5d969d25e28838667c264ead0c881","user":{"login":"fschaper","id":579327,"avatar_url":"https://avatars.githubusercontent.com/u/579327?v=3","gravatar_id":"","url":"https://api.github.com/users/fschaper","html_url":"https://github.com/fschaper","followers_url":"https://api.github.com/users/fschaper/followers","following_url":"https://api.github.com/users/fschaper/following{/other_user}","gists_url":"https://api.github.com/users/fschaper/gists{/gist_id}","starred_url":"https://api.github.com/users/fschaper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fschaper/subscriptions","organizations_url":"https://api.github.com/users/fschaper/orgs","repos_url":"https://api.github.com/users/fschaper/repos","events_url":"https://api.github.com/users/fschaper/events{/privacy}","received_events_url":"https://api.github.com/users/fschaper/received_events","type":"User","site_admin":false},"repo":{"id":48319178,"name":"glide","full_name":"fschaper/glide","owner":{"login":"fschaper","id":579327,"avatar_url":"https://avatars.githubusercontent.com/u/579327?v=3","gravatar_id":"","url":"https://api.github.com/users/fschaper","html_url":"https://github.com/fschaper","followers_url":"https://api.github.com/users/fschaper/followers","following_url":"https://api.github.com/users/fschaper/following{/other_user}","gists_url":"https://api.github.com/users/fschaper/gists{/gist_id}","starred_url":"https://api.github.com/users/fschaper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fschaper/subscriptions","organizations_url":"https://api.github.com/users/fschaper/orgs","repos_url":"https://api.github.com/users/fschaper/repos","events_url":"https://api.github.com/users/fschaper/events{/privacy}","received_events_url":"https://api.github.com/users/fschaper/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fschaper/glide","description":"Wonderfully easy on-demand image manipulation library with an HTTP based API.","fork":true,"url":"https://api.github.com/repos/fschaper/glide","forks_url":"https://api.github.com/repos/fschaper/glide/forks","keys_url":"https://api.github.com/repos/fschaper/glide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fschaper/glide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fschaper/glide/teams","hooks_url":"https://api.github.com/repos/fschaper/glide/hooks","issue_events_url":"https://api.github.com/repos/fschaper/glide/issues/events{/number}","events_url":"https://api.github.com/repos/fschaper/glide/events","assignees_url":"https://api.github.com/repos/fschaper/glide/assignees{/user}","branches_url":"https://api.github.com/repos/fschaper/glide/branches{/branch}","tags_url":"https://api.github.com/repos/fschaper/glide/tags","blobs_url":"https://api.github.com/repos/fschaper/glide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fschaper/glide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fschaper/glide/git/refs{/sha}","trees_url":"https://api.github.com/repos/fschaper/glide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fschaper/glide/statuses/{sha}","languages_url":"https://api.github.com/repos/fschaper/glide/languages","stargazers_url":"https://api.github.com/repos/fschaper/glide/stargazers","contributors_url":"https://api.github.com/repos/fschaper/glide/contributors","subscribers_url":"https://api.github.com/repos/fschaper/glide/subscribers","subscription_url":"https://api.github.com/repos/fschaper/glide/subscription","commits_url":"https://api.github.com/repos/fschaper/glide/commits{/sha}","git_commits_url":"https://api.github.com/repos/fschaper/glide/git/commits{/sha}","comments_url":"https://api.github.com/repos/fschaper/glide/comments{/number}","issue_comment_url":"https://api.github.com/repos/fschaper/glide/issues/comments{/number}","contents_url":"https://api.github.com/repos/fschaper/glide/contents/{+path}","compare_url":"https://api.github.com/repos/fschaper/glide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fschaper/glide/merges","archive_url":"https://api.github.com/repos/fschaper/glide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fschaper/glide/downloads","issues_url":"https://api.github.com/repos/fschaper/glide/issues{/number}","pulls_url":"https://api.github.com/repos/fschaper/glide/pulls{/number}","milestones_url":"https://api.github.com/repos/fschaper/glide/milestones{/number}","notifications_url":"https://api.github.com/repos/fschaper/glide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fschaper/glide/labels{/name}","releases_url":"https://api.github.com/repos/fschaper/glide/releases{/id}","created_at":"2015-12-20T12:20:49Z","updated_at":"2015-12-20T12:20:50Z","pushed_at":"2015-12-21T01:14:38Z","git_url":"git://github.com/fschaper/glide.git","ssh_url":"git@github.com:fschaper/glide.git","clone_url":"https://github.com/fschaper/glide.git","svn_url":"https://github.com/fschaper/glide","homepage":"http://glide.thephpleague.com","size":325,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"thephpleague:master","ref":"master","sha":"4f7e56b260573750c3cff7b8623ad2965700de61","user":{"login":"thephpleague","id":527621,"avatar_url":"https://avatars.githubusercontent.com/u/527621?v=3","gravatar_id":"","url":"https://api.github.com/users/thephpleague","html_url":"https://github.com/thephpleague","followers_url":"https://api.github.com/users/thephpleague/followers","following_url":"https://api.github.com/users/thephpleague/following{/other_user}","gists_url":"https://api.github.com/users/thephpleague/gists{/gist_id}","starred_url":"https://api.github.com/users/thephpleague/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thephpleague/subscriptions","organizations_url":"https://api.github.com/users/thephpleague/orgs","repos_url":"https://api.github.com/users/thephpleague/repos","events_url":"https://api.github.com/users/thephpleague/events{/privacy}","received_events_url":"https://api.github.com/users/thephpleague/received_events","type":"Organization","site_admin":false},"repo":{"id":28349062,"name":"glide","full_name":"thephpleague/glide","owner":{"login":"thephpleague","id":527621,"avatar_url":"https://avatars.githubusercontent.com/u/527621?v=3","gravatar_id":"","url":"https://api.github.com/users/thephpleague","html_url":"https://github.com/thephpleague","followers_url":"https://api.github.com/users/thephpleague/followers","following_url":"https://api.github.com/users/thephpleague/following{/other_user}","gists_url":"https://api.github.com/users/thephpleague/gists{/gist_id}","starred_url":"https://api.github.com/users/thephpleague/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thephpleague/subscriptions","organizations_url":"https://api.github.com/users/thephpleague/orgs","repos_url":"https://api.github.com/users/thephpleague/repos","events_url":"https://api.github.com/users/thephpleague/events{/privacy}","received_events_url":"https://api.github.com/users/thephpleague/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thephpleague/glide","description":"Wonderfully easy on-demand image manipulation library with an HTTP based API.","fork":false,"url":"https://api.github.com/repos/thephpleague/glide","forks_url":"https://api.github.com/repos/thephpleague/glide/forks","keys_url":"https://api.github.com/repos/thephpleague/glide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thephpleague/glide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thephpleague/glide/teams","hooks_url":"https://api.github.com/repos/thephpleague/glide/hooks","issue_events_url":"https://api.github.com/repos/thephpleague/glide/issues/events{/number}","events_url":"https://api.github.com/repos/thephpleague/glide/events","assignees_url":"https://api.github.com/repos/thephpleague/glide/assignees{/user}","branches_url":"https://api.github.com/repos/thephpleague/glide/branches{/branch}","tags_url":"https://api.github.com/repos/thephpleague/glide/tags","blobs_url":"https://api.github.com/repos/thephpleague/glide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thephpleague/glide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thephpleague/glide/git/refs{/sha}","trees_url":"https://api.github.com/repos/thephpleague/glide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thephpleague/glide/statuses/{sha}","languages_url":"https://api.github.com/repos/thephpleague/glide/languages","stargazers_url":"https://api.github.com/repos/thephpleague/glide/stargazers","contributors_url":"https://api.github.com/repos/thephpleague/glide/contributors","subscribers_url":"https://api.github.com/repos/thephpleague/glide/subscribers","subscription_url":"https://api.github.com/repos/thephpleague/glide/subscription","commits_url":"https://api.github.com/repos/thephpleague/glide/commits{/sha}","git_commits_url":"https://api.github.com/repos/thephpleague/glide/git/commits{/sha}","comments_url":"https://api.github.com/repos/thephpleague/glide/comments{/number}","issue_comment_url":"https://api.github.com/repos/thephpleague/glide/issues/comments{/number}","contents_url":"https://api.github.com/repos/thephpleague/glide/contents/{+path}","compare_url":"https://api.github.com/repos/thephpleague/glide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thephpleague/glide/merges","archive_url":"https://api.github.com/repos/thephpleague/glide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thephpleague/glide/downloads","issues_url":"https://api.github.com/repos/thephpleague/glide/issues{/number}","pulls_url":"https://api.github.com/repos/thephpleague/glide/pulls{/number}","milestones_url":"https://api.github.com/repos/thephpleague/glide/milestones{/number}","notifications_url":"https://api.github.com/repos/thephpleague/glide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thephpleague/glide/labels{/name}","releases_url":"https://api.github.com/repos/thephpleague/glide/releases{/id}","created_at":"2014-12-22T17:09:01Z","updated_at":"2015-12-18T16:55:01Z","pushed_at":"2015-12-21T01:22:21Z","git_url":"git://github.com/thephpleague/glide.git","ssh_url":"git@github.com:thephpleague/glide.git","clone_url":"https://github.com/thephpleague/glide.git","svn_url":"https://github.com/thephpleague/glide","homepage":"http://glide.thephpleague.com","size":987,"stargazers_count":573,"watchers_count":573,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":40,"mirror_url":null,"open_issues_count":9,"forks":40,"open_issues":9,"watchers":573,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thephpleague/glide/pulls/113"},"html":{"href":"https://github.com/thephpleague/glide/pull/113"},"issue":{"href":"https://api.github.com/repos/thephpleague/glide/issues/113"},"comments":{"href":"https://api.github.com/repos/thephpleague/glide/issues/113/comments"},"review_comments":{"href":"https://api.github.com/repos/thephpleague/glide/pulls/113/comments"},"review_comment":{"href":"https://api.github.com/repos/thephpleague/glide/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thephpleague/glide/pulls/113/commits"},"statuses":{"href":"https://api.github.com/repos/thephpleague/glide/statuses/c74f7995d8b5d969d25e28838667c264ead0c881"}}}}