{"action":"created","comment":{"url":"https://api.github.com/repos/composer/composer/pulls/comments/62337244","id":62337244,"diff_hunk":"@@ -0,0 +1,323 @@\n+<?php\n+namespace Composer\\Downloader\\Prefetcher;\n+\n+use Composer\\Util;\n+use Composer\\IO;\n+use Composer\\Config;\n+\n+class CopyRequest\n+{\n+    protected $scheme;\n+    protected $user;\n+    protected $pass;\n+    protected $host;\n+    protected $port;\n+    protected $path;\n+    protected $query = array();\n+\n+    /** @var [string => string] */\n+    protected $headers = array();\n+\n+    /** @var string */\n+    protected $destination;\n+\n+    /** @var resource<stream<plainfile>> */\n+    protected $fp;\n+\n+    protected $success = false;","path":"src/Composer/Downloader/Prefetcher/CopyRequest.php","position":27,"original_position":27,"commit_id":"58b4cde5e58fc94e07ef98de499c2e9801275076","original_commit_id":"7953ea5c40a2ac5a6734ee0ba1149fca5661c259","user":{"login":"hirak","id":835251,"avatar_url":"https://avatars.githubusercontent.com/u/835251?v=3","gravatar_id":"","url":"https://api.github.com/users/hirak","html_url":"https://github.com/hirak","followers_url":"https://api.github.com/users/hirak/followers","following_url":"https://api.github.com/users/hirak/following{/other_user}","gists_url":"https://api.github.com/users/hirak/gists{/gist_id}","starred_url":"https://api.github.com/users/hirak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hirak/subscriptions","organizations_url":"https://api.github.com/users/hirak/orgs","repos_url":"https://api.github.com/users/hirak/repos","events_url":"https://api.github.com/users/hirak/events{/privacy}","received_events_url":"https://api.github.com/users/hirak/received_events","type":"User","site_admin":false},"body":":+1: OK","created_at":"2016-05-06T14:31:56Z","updated_at":"2016-05-06T14:31:56Z","html_url":"https://github.com/composer/composer/pull/5293#discussion_r62337244","pull_request_url":"https://api.github.com/repos/composer/composer/pulls/5293","_links":{"self":{"href":"https://api.github.com/repos/composer/composer/pulls/comments/62337244"},"html":{"href":"https://github.com/composer/composer/pull/5293#discussion_r62337244"},"pull_request":{"href":"https://api.github.com/repos/composer/composer/pulls/5293"}}},"pull_request":{"url":"https://api.github.com/repos/composer/composer/pulls/5293","id":69150831,"html_url":"https://github.com/composer/composer/pull/5293","diff_url":"https://github.com/composer/composer/pull/5293.diff","patch_url":"https://github.com/composer/composer/pull/5293.patch","issue_url":"https://api.github.com/repos/composer/composer/issues/5293","number":5293,"state":"open","locked":false,"title":"Parallel downloader","user":{"login":"hirak","id":835251,"avatar_url":"https://avatars.githubusercontent.com/u/835251?v=3","gravatar_id":"","url":"https://api.github.com/users/hirak","html_url":"https://github.com/hirak","followers_url":"https://api.github.com/users/hirak/followers","following_url":"https://api.github.com/users/hirak/following{/other_user}","gists_url":"https://api.github.com/users/hirak/gists{/gist_id}","starred_url":"https://api.github.com/users/hirak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hirak/subscriptions","organizations_url":"https://api.github.com/users/hirak/orgs","repos_url":"https://api.github.com/users/hirak/repos","events_url":"https://api.github.com/users/hirak/events{/privacy}","received_events_url":"https://api.github.com/users/hirak/received_events","type":"User","site_admin":false},"body":"## Parallel Prefetcher\r\n\r\nporting from https://github.com/hirak/prestissimo\r\n\r\n- Fetching packages in parallel at `Composer\\Installer::doInstall()`\r\n- This is NOT replacement of `Composer\\Util\\RemoteFilesystem`.\r\n  - `repository.json` download in serial\r\n- If `!extension_loaded('curl')`, then fallback to RemoteFilesystem\r\n- If it fail to download, then fallback to RemoteFilesystem. (do not retry / do not show any prompt)\r\n\r\n### See also\r\nhttps://github.com/composer/composer/pull/2696\r\nhttps://github.com/composer/composer/issues/3930#issuecomment-193750145\r\n\r\n### Question\r\n\r\n`github-token`, `gitlab-token` options are still alive?\r\nhttps://github.com/composer/composer/blob/36665d791d8ec6520e31880dfe462bd2bf799132/src/Composer/Util/RemoteFilesystem.php#L235\r\nhttps://github.com/composer/composer/blob/36665d791d8ec6520e31880dfe462bd2bf799132/src/Composer/Util/RemoteFilesystem.php#L240\r\n\r\nI can't find any documentation about that options. In this P-R, I didn't implement it yet.","created_at":"2016-05-06T13:29:14Z","updated_at":"2016-05-06T14:31:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88bf0d80daaa3f20d9c85a1503e77bde60d2f028","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/composer/composer/pulls/5293/commits","review_comments_url":"https://api.github.com/repos/composer/composer/pulls/5293/comments","review_comment_url":"https://api.github.com/repos/composer/composer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/composer/composer/issues/5293/comments","statuses_url":"https://api.github.com/repos/composer/composer/statuses/58b4cde5e58fc94e07ef98de499c2e9801275076","head":{"label":"hirak:prestissimo","ref":"prestissimo","sha":"58b4cde5e58fc94e07ef98de499c2e9801275076","user":{"login":"hirak","id":835251,"avatar_url":"https://avatars.githubusercontent.com/u/835251?v=3","gravatar_id":"","url":"https://api.github.com/users/hirak","html_url":"https://github.com/hirak","followers_url":"https://api.github.com/users/hirak/followers","following_url":"https://api.github.com/users/hirak/following{/other_user}","gists_url":"https://api.github.com/users/hirak/gists{/gist_id}","starred_url":"https://api.github.com/users/hirak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hirak/subscriptions","organizations_url":"https://api.github.com/users/hirak/orgs","repos_url":"https://api.github.com/users/hirak/repos","events_url":"https://api.github.com/users/hirak/events{/privacy}","received_events_url":"https://api.github.com/users/hirak/received_events","type":"User","site_admin":false},"repo":{"id":28730790,"name":"composer","full_name":"hirak/composer","owner":{"login":"hirak","id":835251,"avatar_url":"https://avatars.githubusercontent.com/u/835251?v=3","gravatar_id":"","url":"https://api.github.com/users/hirak","html_url":"https://github.com/hirak","followers_url":"https://api.github.com/users/hirak/followers","following_url":"https://api.github.com/users/hirak/following{/other_user}","gists_url":"https://api.github.com/users/hirak/gists{/gist_id}","starred_url":"https://api.github.com/users/hirak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hirak/subscriptions","organizations_url":"https://api.github.com/users/hirak/orgs","repos_url":"https://api.github.com/users/hirak/repos","events_url":"https://api.github.com/users/hirak/events{/privacy}","received_events_url":"https://api.github.com/users/hirak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hirak/composer","description":"Dependency Manager for PHP","fork":true,"url":"https://api.github.com/repos/hirak/composer","forks_url":"https://api.github.com/repos/hirak/composer/forks","keys_url":"https://api.github.com/repos/hirak/composer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hirak/composer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hirak/composer/teams","hooks_url":"https://api.github.com/repos/hirak/composer/hooks","issue_events_url":"https://api.github.com/repos/hirak/composer/issues/events{/number}","events_url":"https://api.github.com/repos/hirak/composer/events","assignees_url":"https://api.github.com/repos/hirak/composer/assignees{/user}","branches_url":"https://api.github.com/repos/hirak/composer/branches{/branch}","tags_url":"https://api.github.com/repos/hirak/composer/tags","blobs_url":"https://api.github.com/repos/hirak/composer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hirak/composer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hirak/composer/git/refs{/sha}","trees_url":"https://api.github.com/repos/hirak/composer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hirak/composer/statuses/{sha}","languages_url":"https://api.github.com/repos/hirak/composer/languages","stargazers_url":"https://api.github.com/repos/hirak/composer/stargazers","contributors_url":"https://api.github.com/repos/hirak/composer/contributors","subscribers_url":"https://api.github.com/repos/hirak/composer/subscribers","subscription_url":"https://api.github.com/repos/hirak/composer/subscription","commits_url":"https://api.github.com/repos/hirak/composer/commits{/sha}","git_commits_url":"https://api.github.com/repos/hirak/composer/git/commits{/sha}","comments_url":"https://api.github.com/repos/hirak/composer/comments{/number}","issue_comment_url":"https://api.github.com/repos/hirak/composer/issues/comments{/number}","contents_url":"https://api.github.com/repos/hirak/composer/contents/{+path}","compare_url":"https://api.github.com/repos/hirak/composer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hirak/composer/merges","archive_url":"https://api.github.com/repos/hirak/composer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hirak/composer/downloads","issues_url":"https://api.github.com/repos/hirak/composer/issues{/number}","pulls_url":"https://api.github.com/repos/hirak/composer/pulls{/number}","milestones_url":"https://api.github.com/repos/hirak/composer/milestones{/number}","notifications_url":"https://api.github.com/repos/hirak/composer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hirak/composer/labels{/name}","releases_url":"https://api.github.com/repos/hirak/composer/releases{/id}","deployments_url":"https://api.github.com/repos/hirak/composer/deployments","created_at":"2015-01-03T00:40:30Z","updated_at":"2016-05-06T08:58:10Z","pushed_at":"2016-05-06T14:29:39Z","git_url":"git://github.com/hirak/composer.git","ssh_url":"git@github.com:hirak/composer.git","clone_url":"https://github.com/hirak/composer.git","svn_url":"https://github.com/hirak/composer","homepage":"http://getcomposer.org/","size":12213,"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":"cc793eff6f8b4757e15f9901908314c08be89a4e","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}","deployments_url":"https://api.github.com/repos/composer/composer/deployments","created_at":"2011-06-08T08:53:00Z","updated_at":"2016-05-06T14:12:25Z","pushed_at":"2016-05-06T14:29:43Z","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":"https://getcomposer.org/","size":23760,"stargazers_count":7625,"watchers_count":7625,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2105,"mirror_url":null,"open_issues_count":133,"forks":2105,"open_issues":133,"watchers":7625,"default_branch":"1.1"}},"_links":{"self":{"href":"https://api.github.com/repos/composer/composer/pulls/5293"},"html":{"href":"https://github.com/composer/composer/pull/5293"},"issue":{"href":"https://api.github.com/repos/composer/composer/issues/5293"},"comments":{"href":"https://api.github.com/repos/composer/composer/issues/5293/comments"},"review_comments":{"href":"https://api.github.com/repos/composer/composer/pulls/5293/comments"},"review_comment":{"href":"https://api.github.com/repos/composer/composer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/composer/composer/pulls/5293/commits"},"statuses":{"href":"https://api.github.com/repos/composer/composer/statuses/58b4cde5e58fc94e07ef98de499c2e9801275076"}}}}