Skip to content

Commit a1a186c

Browse files
committed
Issue #3266160 by smustgrave, alex.skrypnyk, tannguyenhn, beatrizrodrigues, joachim, larowlan: Composer Scaffold plugin calls dispatch() instead of dispatchScript()
(cherry picked from commit a61eee36d29c6e3a09ca53cd6314ce09db2a5d27)
1 parent 2eefa42 commit a1a186c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Handler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function scaffold() {
143143

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

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

180180
// Call post-scaffold scripts.
181-
$dispatcher->dispatch(self::POST_DRUPAL_SCAFFOLD_CMD);
181+
$dispatcher->dispatchScript(self::POST_DRUPAL_SCAFFOLD_CMD);
182182
}
183183

184184
/**

0 commit comments

Comments
 (0)