From e65b0d0e45d8b861744d2740034e42589c95bc41 Mon Sep 17 00:00:00 2001 From: Moshe Weitzman Date: Sun, 12 May 2024 09:24:53 -0400 Subject: [PATCH] Use io() in SiteInstallCommnads (#5996) --- src/Commands/core/SiteInstallCommands.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Commands/core/SiteInstallCommands.php b/src/Commands/core/SiteInstallCommands.php index 977f8434da..0c43cedc64 100644 --- a/src/Commands/core/SiteInstallCommands.php +++ b/src/Commands/core/SiteInstallCommands.php @@ -27,7 +27,6 @@ use Drush\Sql\SqlBase; use Drush\Utils\StringUtils; use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Component\Console\Style\SymfonyStyle; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Filesystem\Path; @@ -414,8 +413,7 @@ public function pre(CommandData $commandData): void } if ($msg) { - // Awkwardly use the text() method from parent because DrushStyle uses it for a prompt. - (new SymfonyStyle($this->input, $this->output))->text(dt('You are about to:')); + $this->io()->text(dt('You are about to:')); $this->io()->listing($msg); }