From c668c2459979f8d6cf2fc97fb78f087bc5d4465e Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 8 Jun 2021 15:34:26 +0200 Subject: [PATCH] Fix autoload events not being dispatched when running dump-autoload command, fixes #9954 --- src/Composer/Command/DumpAutoloadCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/Command/DumpAutoloadCommand.php b/src/Composer/Command/DumpAutoloadCommand.php index 7a5fcd5c7..c4b0b9926 100644 --- a/src/Composer/Command/DumpAutoloadCommand.php +++ b/src/Composer/Command/DumpAutoloadCommand.php @@ -89,6 +89,7 @@ EOT $generator->setDevMode(true); } $generator->setClassMapAuthoritative($authoritative); + $generator->setRunScripts(true); $generator->setApcu($apcu, $apcuPrefix); $generator->setIgnorePlatformRequirements($ignorePlatformReqs); $numberOfClasses = $generator->dump($config, $localRepo, $package, $installationManager, 'composer', $optimize);