function CurlDownloader::download
Parameters
mixed[] $options:
non-empty-string $url:
Return value
int internal job id
File
-
vendor/
composer/ composer/ src/ Composer/ Util/ Http/ CurlDownloader.php, line 124
Class
- CurlDownloader
- @internal @author Jordi Boggiano <j.boggiano@seld.be> @author Nicolas Grekas <p@tchwork.com> @phpstan-type Attributes array{retryAuthFailure: bool, redirects: int<0, max>, retries: int<0, max>, storeAuth:…
Namespace
Composer\Util\HttpCode
public function download(callable $resolve, callable $reject, string $origin, string $url, array $options, ?string $copyTo = null) : int {
$attributes = [];
if (isset($options['retry-auth-failure'])) {
$attributes['retryAuthFailure'] = $options['retry-auth-failure'];
unset($options['retry-auth-failure']);
}
return $this->initDownload($resolve, $reject, $origin, $url, $options, $copyTo, $attributes);
}