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

Breadcrumb

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

function MetapackageInstaller::uninstall

@inheritDoc

Overrides InstallerInterface::uninstall

File

vendor/composer/composer/src/Composer/Installer/MetapackageInstaller.php, line 112

Class

MetapackageInstaller
Metapackage installation manager.

Namespace

Composer\Installer

Code

public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package) {
    if (!$repo->hasPackage($package)) {
        throw new \InvalidArgumentException('Package is not installed: ' . $package);
    }
    $this->io
        ->writeError("  - " . UninstallOperation::format($package));
    $repo->removePackage($package);
    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