You are here

public function UpdateEvent::__construct in Automatic Updates 8.2

Constructs a new UpdateEvent object.

Parameters

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

3 calls to UpdateEvent::__construct()
PreCommitEvent::__construct in src/Event/PreCommitEvent.php
Constructs a new PreCommitEvent object.
PreStartEvent::__construct in src/Event/PreStartEvent.php
Constructs a PreStartEvent object.
ReadinessCheckEvent::__construct in src/Event/ReadinessCheckEvent.php
Constructs a ReadinessCheckEvent object.
3 methods override UpdateEvent::__construct()
PreCommitEvent::__construct in src/Event/PreCommitEvent.php
Constructs a new PreCommitEvent object.
PreStartEvent::__construct in src/Event/PreStartEvent.php
Constructs a PreStartEvent object.
ReadinessCheckEvent::__construct in src/Event/ReadinessCheckEvent.php
Constructs a ReadinessCheckEvent object.

File

src/Event/UpdateEvent.php, line 38

Class

UpdateEvent
Event fired when a site is updating.

Namespace

Drupal\automatic_updates\Event

Code

public function __construct(ComposerUtility $active_composer) {
  $this->activeComposer = $active_composer;
}