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

Breadcrumb

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

function InstallationManager::install

Executes install operation.

@phpstan-return PromiseInterface<void|null>|null

Parameters

InstalledRepositoryInterface $repo repository in which to check:

InstallOperation $operation operation instance:

File

vendor/composer/composer/src/Composer/Installer/InstallationManager.php, line 463

Class

InstallationManager
Package operation manager.

Namespace

Composer\Installer

Code

public function install(InstalledRepositoryInterface $repo, InstallOperation $operation) : ?PromiseInterface {
    $package = $operation->getPackage();
    $installer = $this->getInstaller($package->getType());
    $promise = $installer->install($repo, $package);
    $this->markForNotification($package);
    return $promise;
}

API Navigation

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