ParallelDownloader
extends RemoteFilesystem
in package
Speedup Composer by downloading packages in parallel.
Tags
Table of Contents
- $cacheNext : mixed
- $cache : mixed
- $downloadCount : mixed
- $downloader : mixed
- $fileName : mixed
- $io : mixed
- $lastHeaders : mixed
- $nextCallback : mixed
- $nextOptions : mixed
- $progress : mixed
- $quiet : mixed
- $sharedState : mixed
- __construct() : mixed
- copy() : mixed
- {@inheritdoc}
- download() : mixed
- getContents() : mixed
- {@inheritdoc}
- getLastHeaders() : array<string|int, mixed>
- {@inheritdoc}
- getOptions() : array<string|int, mixed>
- setNextOptions() : mixed
- getRemoteContents() : mixed
- {@inheritdoc}
- getNext() : mixed
Properties
$cacheNext
public
static mixed
$cacheNext
= false
$cache
protected
static mixed
$cache
= []
$downloadCount
private
mixed
$downloadCount
$downloader
private
mixed
$downloader
$fileName
private
mixed
$fileName
$io
private
mixed
$io
$lastHeaders
private
mixed
$lastHeaders
$nextCallback
private
mixed
$nextCallback
$nextOptions
private
mixed
$nextOptions
= []
$progress
private
mixed
$progress
= true
$quiet
private
mixed
$quiet
= true
$sharedState
private
mixed
$sharedState
Methods
__construct()
public
__construct(IOInterface $io, Config $config[, array<string|int, mixed> $options = [] ][, mixed $disableTls = false ]) : mixed
Parameters
- $io : IOInterface
- $config : Config
- $options : array<string|int, mixed> = []
- $disableTls : mixed = false
Return values
mixed —copy()
{@inheritdoc}
public
copy(mixed $originUrl, mixed $fileUrl, mixed $fileName[, mixed $progress = true ][, mixed $options = [] ]) : mixed
Parameters
- $originUrl : mixed
- $fileUrl : mixed
- $fileName : mixed
- $progress : mixed = true
- $options : mixed = []
Return values
mixed —download()
public
download(array<string|int, mixed> &$nextArgs, callable $nextCallback[, bool $quiet = true ][, bool $progress = true ]) : mixed
Parameters
- $nextArgs : array<string|int, mixed>
- $nextCallback : callable
- $quiet : bool = true
- $progress : bool = true
Return values
mixed —getContents()
{@inheritdoc}
public
getContents(mixed $originUrl, mixed $fileUrl[, mixed $progress = true ][, mixed $options = [] ]) : mixed
Parameters
- $originUrl : mixed
- $fileUrl : mixed
- $progress : mixed = true
- $options : mixed = []
Return values
mixed —getLastHeaders()
{@inheritdoc}
public
getLastHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed> —getOptions()
public
getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed> —setNextOptions()
public
setNextOptions(array<string|int, mixed> $options) : mixed
Parameters
- $options : array<string|int, mixed>
Return values
mixed —getRemoteContents()
{@inheritdoc}
protected
getRemoteContents(mixed $originUrl, mixed $fileUrl, mixed $context[, array<string|int, mixed> &$responseHeaders = null ][, mixed $maxFileSize = null ]) : mixed
Parameters
- $originUrl : mixed
- $fileUrl : mixed
- $context : mixed
- $responseHeaders : array<string|int, mixed> = null
- $maxFileSize : mixed = null
Return values
mixed —getNext()
private
getNext() : mixed