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

Breadcrumb

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

function DownloaderInterface::cleanup

Do anything to cleanup changes applied in the prepare or install/update/uninstall steps

Note that cleanup will be called for all packages, either after install/update/uninstall is complete, or if any package failed any operation. This is to give all installers a change to cleanup things they did previously, so you need to keep track of changes applied in the installer/downloader themselves.

@phpstan-return PromiseInterface<void|null>

Parameters

string $type one of install/update/uninstall:

PackageInterface $package package instance:

string $path download path:

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

2 methods override DownloaderInterface::cleanup()
FileDownloader::cleanup in vendor/composer/composer/src/Composer/Downloader/FileDownloader.php
@inheritDoc
VcsDownloader::cleanup in vendor/composer/composer/src/Composer/Downloader/VcsDownloader.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Downloader/DownloaderInterface.php, line 98

Class

DownloaderInterface
Downloader interface.

Namespace

Composer\Downloader

Code

public function cleanup(string $type, PackageInterface $package, string $path, ?PackageInterface $prevPackage = null) : PromiseInterface;

API Navigation

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