Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
[Messenger] Add documentation for RouterContextMiddleware#14969
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
OskarStark commentedFeb 13, 2021
Nice feature, thanks, can you add a short example on how to get this info/context in the message handler? Thanks 😃 |
jderusse commentedFeb 13, 2021 • edited by javiereguiluz
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by javiereguiluz
Uh oh!
There was an error while loading.Please reload this page.
Hmm... This is not aimed to be used by the message handler, and I don't have any use-case for this. The purpose of this feature is to make |
OskarStark commentedFeb 13, 2021
Ah so you don't care about it directly, and just use the urGenerator which takes the provided request context into account? |
jderusse commentedFeb 13, 2021 • 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.
yes, exactly. Main use case: Generating an email with link to your application, and the template is rendered by the consumer (the |
javiereguiluz commentedFeb 16, 2021
Jérémy thanks a lot for providing these docs. While merging we did some rewording in the explanation, but we left the essence of your contribution intact. Thanks! |
This PR was submitted for the 5.4 branch but it was squashed and merged into the 4.4 branch instead.Discussion----------[Messenger] Document the validation middlewareClose#10474I took inspiration on the dochttps://symfonycasts.com/screencast/messenger/other-middleware#validation-doctrine-transaction-etc-middlewareReference this doc#14969 so I added next to itCommits-------0fc886d [Messenger] Document the validation middleware
fixes#14952