Skip to content

Commit

Permalink
Issue #3438034 by tannguyenhn, adwivedi008, alex.skrypnyk, alexpott: …
Browse files Browse the repository at this point in the history
…Fix Composer Scaffold plugin event listeners
  • Loading branch information
alexpott committed Apr 9, 2024
1 parent c10197a commit aa6adb8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Drupal\Composer\Plugin\Scaffold;

use Composer\Composer;
use Composer\EventDispatcher\EventDispatcher;
use Composer\Installer\PackageEvent;
use Composer\IO\IOInterface;
use Composer\Package\PackageInterface;
Expand Down Expand Up @@ -143,7 +142,7 @@ public function scaffold() {
}

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

// Fetch the list of file mappings from each allowed package and normalize
Expand Down

0 comments on commit aa6adb8

Please sign in to comment.