You are here

public function PreStartEvent::__construct in Automatic Updates 8.2

Constructs a PreStartEvent object.

Parameters

\Drupal\package_manager\ComposerUtility $active_composer: A Composer utility object for the active directory.

string[] $package_versions: (optional) The desired package versions to update to, keyed by package name.

Overrides UpdateEvent::__construct

File

src/Event/PreStartEvent.php, line 24

Class

PreStartEvent
Event fired before an update begins.

Namespace

Drupal\automatic_updates\Event

Code

public function __construct(ComposerUtility $active_composer, array $package_versions = []) {
  parent::__construct($active_composer);
  $this->packageVersions = $package_versions;
}