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

Breadcrumb

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

function VcsDownloader::remove

@inheritDoc

Overrides DownloaderInterface::remove

File

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

Class

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

Namespace

Composer\Downloader

Code

public function remove(PackageInterface $package, string $path) : PromiseInterface {
    $this->io
        ->writeError("  - " . UninstallOperation::format($package));
    $promise = $this->filesystem
        ->removeDirectoryAsync($path);
    return $promise->then(static function (bool $result) use ($path) {
        if (!$result) {
            throw new \RuntimeException('Could not completely delete ' . $path . ', aborting.');
        }
    });
}

API Navigation

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