Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Serializer] Class "Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpReceivedStamp" does not exist #41748

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Warxcell opened this issue Jun 19, 2021 · 0 comments

Comments

@Warxcell
Copy link
Contributor

Warxcell commented Jun 19, 2021

Symfony version(s) affected: 5.3., 5.4.

Description
Caused by
ReflectionException: Class "Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpReceivedStamp" does not exist

How to reproduce
Download https://github.com/Warxcell/files and run tests.

Possible Solution
Move https://github.com/symfony/symfony/blob/5.3/src/Symfony/Component/Messenger/Middleware/RejectRedeliveredMessageMiddleware.php to https://github.com/symfony/symfony/tree/5.3/src/Symfony/Component/Messenger/Bridge/Amqp namespace, so it will be registered only if AMQP Bridge Package is installed.

@Warxcell Warxcell added the Bug label Jun 19, 2021
xabbuh added a commit that referenced this issue Jun 21, 2021
…exist (xabbuh)

This PR was merged into the 5.2 branch.

Discussion
----------

[Messenger] prevent reflection usages when classes do not exist

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #41748
| License       | MIT
| Doc PR        |

Commits
-------

017b4b3 prevent reflection usages when classes do not exist
@xabbuh xabbuh closed this as completed Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants