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\DownloaderCode
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.');
}
});
}