Skip to content

[Messenger] BC break in SF 5.0 for stamps due to changes stamp classes #37616

Closed
@Tobion

Description

@Tobion

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions