From a9ec12aaa0901137b6795be07002865bc9ac2f56 Mon Sep 17 00:00:00 2001 From: Nommyde Date: Mon, 31 Oct 2022 04:22:35 +0400 Subject: [PATCH] [Messenger] Improve DX --- .../Component/Messenger/Command/FailedMessagesRetryCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Messenger/Command/FailedMessagesRetryCommand.php b/src/Symfony/Component/Messenger/Command/FailedMessagesRetryCommand.php index df007540c4e2b..77295b6a64370 100644 --- a/src/Symfony/Component/Messenger/Command/FailedMessagesRetryCommand.php +++ b/src/Symfony/Component/Messenger/Command/FailedMessagesRetryCommand.php @@ -176,7 +176,7 @@ private function runWorker(string $failureTransportName, ReceiverInterface $rece throw new \RuntimeException(sprintf('The message with id "%s" could not decoded, it can only be shown or removed.', $this->getMessageId($envelope) ?? '?')); } - $shouldHandle = $shouldForce || $io->confirm('Do you want to retry (yes) or delete this message (no)?'); + $shouldHandle = $shouldForce || 'retry' === $io->choice('Please select an action', ['retry', 'delete'], 'retry'); if ($shouldHandle) { return;