-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Messenger] rename "envelope items" and move them in the "Stamp" namespace #28911
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
[Messenger] rename "envelope items" and move them in the "Stamp" namespace #28911
Conversation
722354c to
74284f6
Compare
src/Symfony/Component/Messenger/DataCollector/MessengerDataCollector.php
Show resolved
Hide resolved
74284f6 to
0ad2cb9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weaverryan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I <3 all of this! The Stamp is much more understandable to me than the EnvelopeItems. We are now, for example, "stamping the message validation configuration".
…he "Stamp" namespace (nicolas-grekas) This PR was merged into the 4.2-dev branch. Discussion ---------- [Messenger] rename "envelope items" and move them in the "Stamp" namespace | Q | A | ------------- | --- | Branch? | 4.2 | Bug fix? | no | New feature? | no | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Right now, envelope items are scattered in different sub namespaces and use the "Configuration" suffix. This makes them hard to discover. This PR creates a new `Stamp` namespace and moves all "envelope items" there, renaming them to use the "stamp" terminology. From the changelog: * `Envelope`'s constructor and `with` method now accept `StampInterface` objects as variadic parameters * Renamed `EnvelopeItemInterface` to `StampInterface` * Renamed and moved `ReceivedMessage`, `ValidationConfiguration` and `SerializerConfiguration` in the `Stamp` namespace * Removed the `WrapIntoReceivedMessage` (it's untested and unused) Commits ------- 0ad2cb9 [Messenger] rename "envelope items" and move them in the "Stamp" namespace
|
Oh my god. You hipsters! |
Right now, envelope items are scattered in different sub namespaces and use the "Configuration" suffix.
This makes them hard to discover.
This PR creates a new
Stampnamespace and moves all "envelope items" there, renaming them to use the "stamp" terminology.From the changelog:
Envelope's constructor andwithmethod now acceptStampInterfaceobjects as variadic parametersEnvelopeItemInterfacetoStampInterfaceReceivedMessage,ValidationConfigurationandSerializerConfigurationin theStampnamespaceWrapIntoReceivedMessage(it's untested and unused)