You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Moving the transports to separate packages in #35422 broke BC for the stamps.
How to reproduce
Using the deprecated classes to fetch stamps does not work anymore since the stamps are now added to the envelope using the new classes. So this code $envelope->last(\Symfony\Component\Messenger\Transport\AmqpExt\AmqpReceivedStamp::class); does not find the stamp anymore.
Possible Solution
Duplicate the stamps in the evelope with the new class and deprecated classes. Or add some logic in the retrieving methods to know about new and old class names.
The text was updated successfully, but these errors were encountered:
…ckages (ogizanagi)
This PR was merged into the 5.1 branch.
Discussion
----------
[Messenger] Fix BC layer for stamps moved into separate packages
| Q | A
| ------------- | ---
| Branch? | 5.1 <!-- see below -->
| Bug fix? | yes
| New feature? | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets | Fix#37616 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License | MIT
| Doc PR | N/A
Commits
-------
118579c [Messenger] Fix BC layer for stamps moved into separate packages
Symfony version(s) affected: >=5.0
Description
Moving the transports to separate packages in #35422 broke BC for the stamps.
How to reproduce
Using the deprecated classes to fetch stamps does not work anymore since the stamps are now added to the envelope using the new classes. So this code
$envelope->last(\Symfony\Component\Messenger\Transport\AmqpExt\AmqpReceivedStamp::class);
does not find the stamp anymore.Possible Solution
Duplicate the stamps in the evelope with the new class and deprecated classes. Or add some logic in the retrieving methods to know about new and old class names.
The text was updated successfully, but these errors were encountered: