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

Breadcrumb

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

function DownloadManager::remove

Removes package from target dir.

@phpstan-return PromiseInterface<void|null>

Parameters

PackageInterface $package package instance:

string $targetDir target dir:

File

vendor/composer/composer/src/Composer/Downloader/DownloadManager.php, line 337

Class

DownloadManager
Downloaders manager.

Namespace

Composer\Downloader

Code

public function remove(PackageInterface $package, string $targetDir) : PromiseInterface {
    $targetDir = $this->normalizeTargetDir($targetDir);
    $downloader = $this->getDownloaderForPackage($package);
    if ($downloader) {
        return $downloader->remove($package, $targetDir);
    }
    return \React\Promise\resolve(null);
}

API Navigation

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