10000 feature #48053 [Messenger] Improve DX (Nommyde) · symfony/symfony@fdd04c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit fdd04c7

Browse files
committed
feature #48053 [Messenger] Improve DX (Nommyde)
This PR was merged into the 6.3 branch. Discussion ---------- [Messenger] Improve DX | Q | A | ------------- | --- | Branch? | 6.2 <!-- see below --> | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #42353 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT The PR doesn't remove the ability to delete messages because it requires too complex refactoring, but at least it makes DX more transparent and predictable. Commits ------- a9ec12a [Messenger] Improve DX
2 parents 1b3d301 + a9ec12a commit fdd04c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Messenger/Command/FailedMessagesRetryCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ private function runWorker(string $failureTransportName, ReceiverInterface $rece
176176
throw new \RuntimeException(sprintf('The message with id "%s" could not decoded, it can only be shown or removed.', $this->getMessageId($envelope) ?? '?'));
177177
}
178178

179-
$shouldHandle = $shouldForce || $io->confirm('Do you want to retry (yes) or delete this message (no)?');
179+
$shouldHandle = $shouldForce || 'retry' === $io->choice('Please select an action', ['retry', 'delete'], 'retry');
180180

181181
if ($shouldHandle) {
182182
return;

0 commit comments

Comments
 (0)
0