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\InstallerCode
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;
}