Skip to content
Snippets Groups Projects
Verified Commit d3adef26 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3266160 by smustgrave, alex.skrypnyk, tannguyenhn, beatrizrodrigues,...

Issue #3266160 by smustgrave, alex.skrypnyk, tannguyenhn, beatrizrodrigues, joachim, larowlan: Composer Scaffold plugin calls dispatch() instead of dispatchScript()

(cherry picked from commit a61eee36)
parent 4ca16dc1
Branches
Tags
17 merge requests!12212Issue #3445525 by alexpott, japerry, catch, mglaman, longwave: Add BC layer...,!10602Issue #3438769 by vinmayiswamy, antonnavi, michelle, amateescu: Sub workspace does not clear,!10301Issue #3469309 by mstrelan, smustgrave, moshe weitzman: Use one-time login...,!10187Issue #3487488 by dakwamine: ExtensionMimeTypeGuesser::guessMimeType must support file names with "0" (zero) like foo.0.zip,!9929Issue #3445469 by pooja_sharma, smustgrave: Add additional test coverage for...,!9787Resolve issue 3479427 - bootstrap barrio issue under Windows,!9742Issue #3463908 by catch, quietone: Split OptionsFieldUiTest into two,!9526Issue #3458177 by mondrake, catch, quietone, godotislate, longwave, larowlan,...,!8949Backport .gitlabci.yml changes.,!8738Issue #3424162 by camilledavis, dineshkumarbollu, smustgrave: Claro...,!8704Make greek characters available in ckeditor5,!8533Issue #3446962 by kim.pepper: Remove incorrectly added...,!8517Issue #3443748 by NexusNovaz, smustgrave: Testcase creates false positive,!7445Issue #3440169: When using drupalGet(), provide an associative array for $headers,!6502Draft: Resolve #2938524 "Plach testing issue",!38582585169-10.1.x,!3226Issue #2987537: Custom menu link entity type should not declare "bundle" entity key
Pipeline #170406 passed with warnings
Pipeline: drupal

#170413

    ......@@ -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.
    ......@@ -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);
    }
    /**
    ......
    ......@@ -4,11 +4,11 @@
    namespace Drupal\Tests\fixture\Composer\Plugin;
    use Composer\EventDispatcher\Event;
    use Composer\EventDispatcher\EventSubscriberInterface;
    use Composer\Plugin\PluginInterface;
    use Composer\Composer;
    use Composer\IO\IOInterface;
    use Composer\Script\Event;
    use Drupal\Composer\Plugin\Scaffold\Handler;
    /**
    ......@@ -30,14 +30,14 @@ public static function getSubscribedEvents(): array {
    * Implements pre Drupal scaffold cmd.
    */
    public static function preDrupalScaffoldCmd(Event $event): void {
    print 'Hello preDrupalScaffoldCmd' . PHP_EOL;
    $event->getIO()->write('Hello preDrupalScaffoldCmd');
    }
    /**
    * Implements post Drupal scaffold cmd.
    */
    public static function postDrupalScaffoldCmd(Event $event): void {
    print 'Hello postDrupalScaffoldCmd' . PHP_EOL;
    $event->getIO()->write('Hello postDrupalScaffoldCmd');
    }
    /**
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment