You are here

public function PreCommitEvent::__construct in Automatic Updates 8.2

Constructs a new PreCommitEvent object.

Parameters

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

\Drupal\package_manager\ComposerUtility $stage_composer: A Composer utility object for the stage directory.

Overrides UpdateEvent::__construct

File

src/Event/PreCommitEvent.php, line 29

Class

PreCommitEvent
Event fired before staged changes are copied into the active site.

Namespace

Drupal\automatic_updates\Event

Code

public function __construct(ComposerUtility $active_composer, ComposerUtility $stage_composer) {
  parent::__construct($active_composer);
  $this->stageComposer = $stage_composer;
}