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

Breadcrumb

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

function InstallerInterface::cleanup

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

Note that cleanup will be called for all packages regardless if they failed an operation or not, 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>|null

Parameters

string $type one of install/update/uninstall:

PackageInterface $package package instance:

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

Return value

PromiseInterface|null

4 methods override InstallerInterface::cleanup()
LibraryInstaller::cleanup in vendor/composer/composer/src/Composer/Installer/LibraryInstaller.php
@inheritDoc
MetapackageInstaller::cleanup in vendor/composer/composer/src/Composer/Installer/MetapackageInstaller.php
@inheritDoc
NoopInstaller::cleanup in vendor/composer/composer/src/Composer/Installer/NoopInstaller.php
@inheritDoc
ProjectInstaller::cleanup in vendor/composer/composer/src/Composer/Installer/ProjectInstaller.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Installer/InstallerInterface.php, line 116

Class

InstallerInterface
Interface for the package installation manager.

Namespace

Composer\Installer

Code

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

API Navigation

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