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

Breadcrumb

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

function VcsDownloader::doDownload

Downloads data needed to run an install/update later

@phpstan-return PromiseInterface<void|null>

Parameters

PackageInterface $package package instance:

string $path download path:

string $url package url:

PackageInterface|null $prevPackage previous package (in case of an update):

1 call to VcsDownloader::doDownload()
VcsDownloader::download in vendor/composer/composer/src/Composer/Downloader/VcsDownloader.php
@inheritDoc
5 methods override VcsDownloader::doDownload()
FossilDownloader::doDownload in vendor/composer/composer/src/Composer/Downloader/FossilDownloader.php
@inheritDoc
GitDownloader::doDownload in vendor/composer/composer/src/Composer/Downloader/GitDownloader.php
@inheritDoc
HgDownloader::doDownload in vendor/composer/composer/src/Composer/Downloader/HgDownloader.php
@inheritDoc
PerforceDownloader::doDownload in vendor/composer/composer/src/Composer/Downloader/PerforceDownloader.php
@inheritDoc
SvnDownloader::doDownload in vendor/composer/composer/src/Composer/Downloader/SvnDownloader.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Downloader/VcsDownloader.php, line 292

Class

VcsDownloader
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Downloader

Code

protected abstract function doDownload(PackageInterface $package, string $path, string $url, ?PackageInterface $prevPackage = null) : PromiseInterface;

API Navigation

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