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

Breadcrumb

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

function InstallerInterface::download

Downloads the files needed to later install the given package.

@phpstan-return PromiseInterface<void|null>|null

Parameters

PackageInterface $package package instance:

PackageInterface $prevPackage previous package instance in case of an update:

Return value

PromiseInterface|null

4 methods override InstallerInterface::download()
LibraryInstaller::download in vendor/composer/composer/src/Composer/Installer/LibraryInstaller.php
@inheritDoc
MetapackageInstaller::download in vendor/composer/composer/src/Composer/Installer/MetapackageInstaller.php
@inheritDoc
NoopInstaller::download in vendor/composer/composer/src/Composer/Installer/NoopInstaller.php
@inheritDoc
ProjectInstaller::download in vendor/composer/composer/src/Composer/Installer/ProjectInstaller.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Installer/InstallerInterface.php, line 53

Class

InstallerInterface
Interface for the package installation manager.

Namespace

Composer\Installer

Code

public function download(PackageInterface $package, ?PackageInterface $prevPackage = null);

API Navigation

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