Skip to content

Commit

Permalink
Issue #3266160 by smustgrave, alex.skrypnyk, tannguyenhn, beatrizrodr…
Browse files Browse the repository at this point in the history
…igues, joachim, larowlan: Composer Scaffold plugin calls dispatch() instead of dispatchScript()

(cherry picked from commit a61eee36d29c6e3a09ca53cd6314ce09db2a5d27)
  • Loading branch information
alexpott committed May 11, 2024
1 parent 2eefa42 commit 99d6949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function scaffold() {

// Call any pre-scaffold scripts that may be defined.
$dispatcher = $this->composer->getEventDispatcher();
$dispatcher->dispatch(self::PRE_DRUPAL_SCAFFOLD_CMD);
$dispatcher->dispatchScript(self::PRE_DRUPAL_SCAFFOLD_CMD);

// Fetch the list of file mappings from each allowed package and normalize
// them.
Expand Down Expand Up @@ -178,7 +178,7 @@ public function scaffold() {
$gitIgnoreManager->manageIgnored($scaffold_results, $scaffold_options);

// Call post-scaffold scripts.
$dispatcher->dispatch(self::POST_DRUPAL_SCAFFOLD_CMD);
$dispatcher->dispatchScript(self::POST_DRUPAL_SCAFFOLD_CMD);
}

/**
Expand Down

0 comments on commit 99d6949

Please sign in to comment.