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

Breadcrumb

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

function FileDownloader::update

@inheritDoc

Overrides DownloaderInterface::update

File

vendor/composer/composer/src/Composer/Downloader/FileDownloader.php, line 409

Class

FileDownloader
Base downloader for files

Namespace

Composer\Downloader

Code

public function update(PackageInterface $initial, PackageInterface $target, string $path) : PromiseInterface {
    $this->io
        ->writeError("  - " . UpdateOperation::format($initial, $target) . $this->getInstallOperationAppendix($target, $path));
    $promise = $this->remove($initial, $path, false);
    return $promise->then(function () use ($target, $path) : PromiseInterface {
        return $this->install($target, $path, false);
    });
}

API Navigation

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