We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdf11c7 commit 1ba9de7Copy full SHA for 1ba9de7
Handler.php
@@ -3,7 +3,6 @@
3
namespace Drupal\Composer\Plugin\Scaffold;
4
5
use Composer\Composer;
6
-use Composer\EventDispatcher\EventDispatcher;
7
use Composer\Installer\PackageEvent;
8
use Composer\IO\IOInterface;
9
use Composer\Package\PackageInterface;
@@ -143,7 +142,7 @@ public function scaffold() {
143
142
}
144
145
// Call any pre-scaffold scripts that may be defined.
146
- $dispatcher = new EventDispatcher($this->composer, $this->io);
+ $dispatcher = $this->composer->getEventDispatcher();
147
$dispatcher->dispatch(self::PRE_DRUPAL_SCAFFOLD_CMD);
148
149
// Fetch the list of file mappings from each allowed package and normalize
0 commit comments