{"action":"created","comment":{"url":"https://api.github.com/repos/composer/composer/pulls/comments/43851731","id":43851731,"diff_hunk":"@@ -0,0 +1,59 @@\n+<?php\n+\n+/*\n+ * This file is part of Composer.\n+ *\n+ * (c) Nils Adermann <naderman@naderman.de>\n+ *     Jordi Boggiano <j.boggiano@seld.be>\n+ *\n+ * For the full copyright and license information, please view the LICENSE\n+ * file that was distributed with this source code.\n+ */\n+\n+namespace Composer\\Downloader;\n+\n+use Composer\\Config;\n+use Composer\\Cache;\n+use Composer\\EventDispatcher\\EventDispatcher;\n+use Composer\\Package\\PackageInterface;\n+use Composer\\Util\\ProcessExecutor;\n+use Composer\\IO\\IOInterface;\n+\n+/**\n+ * Xz archive downloader.\n+ *\n+ * @author Pavel Puchkin <i@neoascetic.me>\n+ * @author Pierre Rudloff <contact@rudloff.pro>\n+ */\n+class XzDownloader extends ArchiveDownloader\n+{\n+    protected $process;\n+\n+    public function __construct(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null, Cache $cache = null, ProcessExecutor $process = null)\n+    {\n+        $this->process = $process ?: new ProcessExecutor($io);\n+        parent::__construct($io, $config, $eventDispatcher, $cache);","path":"src/Composer/Downloader/XzDownloader.php","position":35,"original_position":35,"commit_id":"879d34589b2c0c3f33a4ba5533e2e093f6503e2a","original_commit_id":"879d34589b2c0c3f33a4ba5533e2e093f6503e2a","user":{"login":"alcohol","id":21414,"avatar_url":"https://avatars.githubusercontent.com/u/21414?v=3","gravatar_id":"","url":"https://api.github.com/users/alcohol","html_url":"https://github.com/alcohol","followers_url":"https://api.github.com/users/alcohol/followers","following_url":"https://api.github.com/users/alcohol/following{/other_user}","gists_url":"https://api.github.com/users/alcohol/gists{/gist_id}","starred_url":"https://api.github.com/users/alcohol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcohol/subscriptions","organizations_url":"https://api.github.com/users/alcohol/orgs","repos_url":"https://api.github.com/users/alcohol/repos","events_url":"https://api.github.com/users/alcohol/events{/privacy}","received_events_url":"https://api.github.com/users/alcohol/received_events","type":"User","site_admin":false},"body":"should have a newline before the parent call","created_at":"2015-11-04T08:03:42Z","updated_at":"2015-11-04T08:03:42Z","html_url":"https://github.com/composer/composer/pull/4573#discussion_r43851731","pull_request_url":"https://api.github.com/repos/composer/composer/pulls/4573","_links":{"self":{"href":"https://api.github.com/repos/composer/composer/pulls/comments/43851731"},"html":{"href":"https://github.com/composer/composer/pull/4573#discussion_r43851731"},"pull_request":{"href":"https://api.github.com/repos/composer/composer/pulls/4573"}}},"pull_request":{"url":"https://api.github.com/repos/composer/composer/pulls/4573","id":49352615,"html_url":"https://github.com/composer/composer/pull/4573","diff_url":"https://github.com/composer/composer/pull/4573.diff","patch_url":"https://github.com/composer/composer/pull/4573.patch","issue_url":"https://api.github.com/repos/composer/composer/issues/4573","number":4573,"state":"open","locked":false,"title":".tar.xz downloader","user":{"login":"Rudloff","id":840125,"avatar_url":"https://avatars.githubusercontent.com/u/840125?v=3","gravatar_id":"","url":"https://api.github.com/users/Rudloff","html_url":"https://github.com/Rudloff","followers_url":"https://api.github.com/users/Rudloff/followers","following_url":"https://api.github.com/users/Rudloff/following{/other_user}","gists_url":"https://api.github.com/users/Rudloff/gists{/gist_id}","starred_url":"https://api.github.com/users/Rudloff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rudloff/subscriptions","organizations_url":"https://api.github.com/users/Rudloff/orgs","repos_url":"https://api.github.com/users/Rudloff/repos","events_url":"https://api.github.com/users/Rudloff/events{/privacy}","received_events_url":"https://api.github.com/users/Rudloff/received_events","type":"User","site_admin":false},"body":"Hello,\r\n\r\nAs stated in https://github.com/composer/composer/issues/2804, it can be useful to be able to install from XZ tarballs. So here is an XzDownloader class based on GzipDownloader.\r\n\r\nRegards,","created_at":"2015-10-31T16:14:16Z","updated_at":"2015-11-04T08:03:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"59809637423238f2700d4f1e3f029b8f65cfa056","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/composer/composer/pulls/4573/commits","review_comments_url":"https://api.github.com/repos/composer/composer/pulls/4573/comments","review_comment_url":"https://api.github.com/repos/composer/composer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/composer/composer/issues/4573/comments","statuses_url":"https://api.github.com/repos/composer/composer/statuses/879d34589b2c0c3f33a4ba5533e2e093f6503e2a","head":{"label":"Rudloff:xz","ref":"xz","sha":"879d34589b2c0c3f33a4ba5533e2e093f6503e2a","user":{"login":"Rudloff","id":840125,"avatar_url":"https://avatars.githubusercontent.com/u/840125?v=3","gravatar_id":"","url":"https://api.github.com/users/Rudloff","html_url":"https://github.com/Rudloff","followers_url":"https://api.github.com/users/Rudloff/followers","following_url":"https://api.github.com/users/Rudloff/following{/other_user}","gists_url":"https://api.github.com/users/Rudloff/gists{/gist_id}","starred_url":"https://api.github.com/users/Rudloff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rudloff/subscriptions","organizations_url":"https://api.github.com/users/Rudloff/orgs","repos_url":"https://api.github.com/users/Rudloff/repos","events_url":"https://api.github.com/users/Rudloff/events{/privacy}","received_events_url":"https://api.github.com/users/Rudloff/received_events","type":"User","site_admin":false},"repo":{"id":45308534,"name":"composer","full_name":"Rudloff/composer","owner":{"login":"Rudloff","id":840125,"avatar_url":"https://avatars.githubusercontent.com/u/840125?v=3","gravatar_id":"","url":"https://api.github.com/users/Rudloff","html_url":"https://github.com/Rudloff","followers_url":"https://api.github.com/users/Rudloff/followers","following_url":"https://api.github.com/users/Rudloff/following{/other_user}","gists_url":"https://api.github.com/users/Rudloff/gists{/gist_id}","starred_url":"https://api.github.com/users/Rudloff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rudloff/subscriptions","organizations_url":"https://api.github.com/users/Rudloff/orgs","repos_url":"https://api.github.com/users/Rudloff/repos","events_url":"https://api.github.com/users/Rudloff/events{/privacy}","received_events_url":"https://api.github.com/users/Rudloff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Rudloff/composer","description":"Dependency Manager for PHP","fork":true,"url":"https://api.github.com/repos/Rudloff/composer","forks_url":"https://api.github.com/repos/Rudloff/composer/forks","keys_url":"https://api.github.com/repos/Rudloff/composer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Rudloff/composer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Rudloff/composer/teams","hooks_url":"https://api.github.com/repos/Rudloff/composer/hooks","issue_events_url":"https://api.github.com/repos/Rudloff/composer/issues/events{/number}","events_url":"https://api.github.com/repos/Rudloff/composer/events","assignees_url":"https://api.github.com/repos/Rudloff/composer/assignees{/user}","branches_url":"https://api.github.com/repos/Rudloff/composer/branches{/branch}","tags_url":"https://api.github.com/repos/Rudloff/composer/tags","blobs_url":"https://api.github.com/repos/Rudloff/composer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Rudloff/composer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Rudloff/composer/git/refs{/sha}","trees_url":"https://api.github.com/repos/Rudloff/composer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Rudloff/composer/statuses/{sha}","languages_url":"https://api.github.com/repos/Rudloff/composer/languages","stargazers_url":"https://api.github.com/repos/Rudloff/composer/stargazers","contributors_url":"https://api.github.com/repos/Rudloff/composer/contributors","subscribers_url":"https://api.github.com/repos/Rudloff/composer/subscribers","subscription_url":"https://api.github.com/repos/Rudloff/composer/subscription","commits_url":"https://api.github.com/repos/Rudloff/composer/commits{/sha}","git_commits_url":"https://api.github.com/repos/Rudloff/composer/git/commits{/sha}","comments_url":"https://api.github.com/repos/Rudloff/composer/comments{/number}","issue_comment_url":"https://api.github.com/repos/Rudloff/composer/issues/comments{/number}","contents_url":"https://api.github.com/repos/Rudloff/composer/contents/{+path}","compare_url":"https://api.github.com/repos/Rudloff/composer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Rudloff/composer/merges","archive_url":"https://api.github.com/repos/Rudloff/composer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Rudloff/composer/downloads","issues_url":"https://api.github.com/repos/Rudloff/composer/issues{/number}","pulls_url":"https://api.github.com/repos/Rudloff/composer/pulls{/number}","milestones_url":"https://api.github.com/repos/Rudloff/composer/milestones{/number}","notifications_url":"https://api.github.com/repos/Rudloff/composer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Rudloff/composer/labels{/name}","releases_url":"https://api.github.com/repos/Rudloff/composer/releases{/id}","created_at":"2015-10-31T16:09:28Z","updated_at":"2015-10-31T16:09:31Z","pushed_at":"2015-11-03T22:29:27Z","git_url":"git://github.com/Rudloff/composer.git","ssh_url":"git@github.com:Rudloff/composer.git","clone_url":"https://github.com/Rudloff/composer.git","svn_url":"https://github.com/Rudloff/composer","homepage":"http://getcomposer.org/","size":28062,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"composer:master","ref":"master","sha":"2d24ed8e74828645b999eeadb547927e16679edb","user":{"login":"composer","id":837015,"avatar_url":"https://avatars.githubusercontent.com/u/837015?v=3","gravatar_id":"","url":"https://api.github.com/users/composer","html_url":"https://github.com/composer","followers_url":"https://api.github.com/users/composer/followers","following_url":"https://api.github.com/users/composer/following{/other_user}","gists_url":"https://api.github.com/users/composer/gists{/gist_id}","starred_url":"https://api.github.com/users/composer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/composer/subscriptions","organizations_url":"https://api.github.com/users/composer/orgs","repos_url":"https://api.github.com/users/composer/repos","events_url":"https://api.github.com/users/composer/events{/privacy}","received_events_url":"https://api.github.com/users/composer/received_events","type":"Organization","site_admin":false},"repo":{"id":1864363,"name":"composer","full_name":"composer/composer","owner":{"login":"composer","id":837015,"avatar_url":"https://avatars.githubusercontent.com/u/837015?v=3","gravatar_id":"","url":"https://api.github.com/users/composer","html_url":"https://github.com/composer","followers_url":"https://api.github.com/users/composer/followers","following_url":"https://api.github.com/users/composer/following{/other_user}","gists_url":"https://api.github.com/users/composer/gists{/gist_id}","starred_url":"https://api.github.com/users/composer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/composer/subscriptions","organizations_url":"https://api.github.com/users/composer/orgs","repos_url":"https://api.github.com/users/composer/repos","events_url":"https://api.github.com/users/composer/events{/privacy}","received_events_url":"https://api.github.com/users/composer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/composer/composer","description":"Dependency Manager for PHP","fork":false,"url":"https://api.github.com/repos/composer/composer","forks_url":"https://api.github.com/repos/composer/composer/forks","keys_url":"https://api.github.com/repos/composer/composer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/composer/composer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/composer/composer/teams","hooks_url":"https://api.github.com/repos/composer/composer/hooks","issue_events_url":"https://api.github.com/repos/composer/composer/issues/events{/number}","events_url":"https://api.github.com/repos/composer/composer/events","assignees_url":"https://api.github.com/repos/composer/composer/assignees{/user}","branches_url":"https://api.github.com/repos/composer/composer/branches{/branch}","tags_url":"https://api.github.com/repos/composer/composer/tags","blobs_url":"https://api.github.com/repos/composer/composer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/composer/composer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/composer/composer/git/refs{/sha}","trees_url":"https://api.github.com/repos/composer/composer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/composer/composer/statuses/{sha}","languages_url":"https://api.github.com/repos/composer/composer/languages","stargazers_url":"https://api.github.com/repos/composer/composer/stargazers","contributors_url":"https://api.github.com/repos/composer/composer/contributors","subscribers_url":"https://api.github.com/repos/composer/composer/subscribers","subscription_url":"https://api.github.com/repos/composer/composer/subscription","commits_url":"https://api.github.com/repos/composer/composer/commits{/sha}","git_commits_url":"https://api.github.com/repos/composer/composer/git/commits{/sha}","comments_url":"https://api.github.com/repos/composer/composer/comments{/number}","issue_comment_url":"https://api.github.com/repos/composer/composer/issues/comments{/number}","contents_url":"https://api.github.com/repos/composer/composer/contents/{+path}","compare_url":"https://api.github.com/repos/composer/composer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/composer/composer/merges","archive_url":"https://api.github.com/repos/composer/composer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/composer/composer/downloads","issues_url":"https://api.github.com/repos/composer/composer/issues{/number}","pulls_url":"https://api.github.com/repos/composer/composer/pulls{/number}","milestones_url":"https://api.github.com/repos/composer/composer/milestones{/number}","notifications_url":"https://api.github.com/repos/composer/composer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/composer/composer/labels{/name}","releases_url":"https://api.github.com/repos/composer/composer/releases{/id}","created_at":"2011-06-08T08:53:00Z","updated_at":"2015-11-04T07:45:35Z","pushed_at":"2015-11-04T06:18:34Z","git_url":"git://github.com/composer/composer.git","ssh_url":"git@github.com:composer/composer.git","clone_url":"https://github.com/composer/composer.git","svn_url":"https://github.com/composer/composer","homepage":"http://getcomposer.org/","size":28062,"stargazers_count":6516,"watchers_count":6516,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1807,"mirror_url":null,"open_issues_count":544,"forks":1807,"open_issues":544,"watchers":6516,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/composer/composer/pulls/4573"},"html":{"href":"https://github.com/composer/composer/pull/4573"},"issue":{"href":"https://api.github.com/repos/composer/composer/issues/4573"},"comments":{"href":"https://api.github.com/repos/composer/composer/issues/4573/comments"},"review_comments":{"href":"https://api.github.com/repos/composer/composer/pulls/4573/comments"},"review_comment":{"href":"https://api.github.com/repos/composer/composer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/composer/composer/pulls/4573/commits"},"statuses":{"href":"https://api.github.com/repos/composer/composer/statuses/879d34589b2c0c3f33a4ba5533e2e093f6503e2a"}}}}