8000 feature #54859 [Messenger] Don't mark `EnvelopeAwareExceptionInterfac… · symfony/symfony@5a00a8b · GitHub
[go: up one dir, main page]

Skip to content

Commit 5a00a8b

Browse files
committed
feature #54859 [Messenger] Don't mark EnvelopeAwareExceptionInterface internal (valtzu)
This PR was merged into the 7.1 branch. Discussion ---------- [Messenger] Don't mark `EnvelopeAwareExceptionInterface` internal | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | yes | Deprecations? | no | License | MIT As discussed [here](#54842 (comment)), let's expose `EnvelopeAwareExceptionInterface` to allow custom Messenger middlewares throw a custom exception without causing stamps from previous middlewares being dropped. Commits ------- 7713fd1 Don't mark EnvelopeAwareExceptionInterface internal
2 parents 8826db2 + 7713fd1 commit 5a00a8b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/Symfony/Component/Messenger/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ CHANGELOG
99
* Add `--all` option to the `messenger:consume` command
1010
* Add parameter `$jitter` to `MultiplierRetryStrategy` in order to randomize delay and prevent the thundering herd effect
1111
* Add `SIGQUIT` signal among list of signals that gracefully shut down `messenger:consume` and `messenger:failed:retry` commands
12+
* Add `EnvelopeAwareExceptionInterface` for exceptions thrown from middlewares to prevent stamps added by previous middlewares being dropped
1213

1314
7.0
1415
---

src/Symfony/Component/Messenger/Exception/EnvelopeAwareExceptionInterface.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313

1414
use Symfony\Component\Messenger\Envelope;
1515

16-/**
17-
* @internal
18-
*/
1916
interface EnvelopeAwareExceptionInterface
2017
{
2118
public function getEnvelope(): ?Envelope;

0 commit comments

Comments
 (0)
0