You are here

protected function Updater::stagePackages in Automatic Updates 8.2

Installs Composer packages in the staging area.

Parameters

string[] $packages: The versions of the packages to stage, keyed by package name.

1 call to Updater::stagePackages()
Updater::stage in src/Updater.php
Stages the update.

File

src/Updater.php, line 187

Class

Updater
Defines a service to perform updates.

Namespace

Drupal\automatic_updates

Code

protected function stagePackages(array $packages) : void {
  $command = array_merge([
    'require',
  ], $packages);
  $command[] = '--update-with-all-dependencies';
  $this
    ->stageCommand($command);
}