-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Making the serializer configurable by transport #30628
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
Merged
fabpot
merged 1 commit into
symfony:master
from
weaverryan:messenger-serializer-by-transport
Mar 31, 2019
Merged
Making the serializer configurable by transport #30628
fabpot
merged 1 commit into
symfony:master
from
weaverryan:messenger-serializer-by-transport
Mar 31, 2019
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 tasks
1fc3ef3
to
e0b8cb7
Compare
weaverryan
commented
Mar 21, 2019
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Show resolved
Hide resolved
src/Symfony/Component/Messenger/Transport/AmqpExt/AmqpTransportFactory.php
Outdated
Show resolved
Hide resolved
e7ae82e
to
79425a3
Compare
sroze
suggested changes
Mar 23, 2019
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Show resolved
Hide resolved
src/Symfony/Component/Messenger/Transport/AmqpExt/AmqpTransportFactory.php
Outdated
Show resolved
Hide resolved
8b46346
to
f3e7aff
Compare
Ready to go again Status: Needs review |
weaverryan
commented
Mar 28, 2019
sroze
suggested changes
Mar 29, 2019
src/Symfony/Component/Messenger/Transport/TransportFactoryInterface.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Outdated
Show resolved
Hide resolved
f3e7aff
to
2d71a11
Compare
sroze
approved these changes
Mar 31, 2019
5396317
to
44c9e38
Compare
Rebased and ready! |
44c9e38
to
7b66e39
Compare
fabpot
approved these changes
Mar 31, 2019
7b66e39
to
ef6f23e
Compare
Thank you @weaverryan. |
fabpot
added a commit
that referenced
this pull request
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
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Use cases:
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!