Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Hackday][Messenger] Add an alias for transport.symfony_serializer so SerializerInterface can be autowired#29517
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
stof commentedDec 8, 2018
#SymfonyConHackday2018 |
src/Symfony/Bundle/FrameworkBundle/Resources/config/messenger.xml OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
chalasr 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.
👍 with minor comment.
Sounds more like a feature to me, better merge it on master I'd say.
src/Symfony/Bundle/FrameworkBundle/Resources/config/messenger.xml OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
ogizanagi commentedDec 8, 2018
I wondered about this alias before, but the serializer is configurable through the |
chalasr commentedDec 8, 2018
Status: needs work |
nicolas-grekas commentedDec 9, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I think we prefer defining in xml and removing in the extension: that makes the xml more useful to eg IDE plugins that want to use it. |
karser commentedDec 10, 2018
@nicolas-grekas Did you mean this? please review |
src/Symfony/Bundle/FrameworkBundle/Resources/config/messenger.xml OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
… SerializerInterface can be autowired
218ba84 to2f0e948Comparenicolas-grekas commentedDec 13, 2018
Thank you@karser. |
…y_serializer so SerializerInterface can be autowired (karser)This PR was submitted for the 4.2 branch but it was squashed and merged into the 4.3-dev branch instead (closes#29517).Discussion----------[Hackday][Messenger] Add an alias for transport.symfony_serializer so SerializerInterface can be autowired| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes <!-- please add some, will be required by reviewers -->| License | MITcc@thePanzUse case:Before:``` Pnz\Messenger\FilesystemTransport\FilesystemTransportFactory: arguments: - '@messenger.transport.symfony_serializer' tags: ['messenger.transport_factory']```After:``` Pnz\Messenger\FilesystemTransport\FilesystemTransportFactory: tags: ['messenger.transport_factory']```Commits-------2f0e948 [Hackday][Messenger] Add an alias for transport.symfony_serializer so SerializerInterface can be autowired
Uh oh!
There was an error while loading.Please reload this page.
cc@thePanz
Use case:
Before:
After: