-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Messenger - Use different Serializer #30293
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
Labels
Comments
Heya, for support questions, please check one of the support channels on: https://symfony.com/support, thanks! |
As @linaori said, this looks like a support question, so we must close it. If you try to do this with the help provided by the community and it doesn't work, then we can reopen this as a possible Symfony bug. Thanks. |
fabpot
added a commit
that referenced
this issue
Mar 31, 2019
…rryan) This PR was merged into the 4.3-dev branch. Discussion ---------- Making the serializer configurable by transport | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | #30293 (already closed, but I don't think this was reasonably possible before) | License | MIT | Doc PR | TODO - as many of the new messenger PRs will be done at once Use cases: * #30293 * Transport A will be consumed by your Symfony app (so native php serialization is cool) but transport B will be consumed by another app, so you want to serialize as JSON * Upgrading from Symfony 4.2 to 4.3. The change to the `PhpSerialize` means that messages that were sent to the queue on 4.2, will fail on 4.3. The solution is to use the old serializer in your config. This would allow you to make your existing transport use the old serializer, then migrate to a new transport using the new serializer (then remove the old one later). Thanks! Commits ------- ef6f23e Making the serializer configurable by transport
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello
I have a 2 transports and i need own serializer for each transports. is it possible? ( one in JSON format, one in XML for example)
The text was updated successfully, but these errors were encountered: