Skip to content

Commit 7fa42ea

Browse files
committed
[BUGFIX] Fix auto commands in composer environment
Handover composer version to CommandDispatcher to can use different symfony/console api call based on composer version. See: TYPO3-Console/TYPO3-Console#1042
1 parent cd179f3 commit 7fa42ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Composer/InstallerScript/ConsoleCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function run(Event $event): bool
8282
$io->writeError(sprintf('<info>%s</info>', $this->message));
8383
}
8484

85-
$commandDispatcher = CommandDispatcher::createFromComposerRun($event);
85+
$commandDispatcher = CommandDispatcher::createFromComposerRun($event, [], ['COMPOSER_VERSION' => $event->getComposer()::getVersion()]);
8686
try {
8787
$output = $commandDispatcher->executeCommand($this->command, $this->arguments);
8888
$io->writeError($output, true, $io::VERBOSE);

0 commit comments

Comments
 (0)