Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CurlDownloader.php

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\Http

Code

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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal