Skip to content

[Messenger] Tweaks for DispatchAfterCurrentBusMiddleware entry #11597

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
merged 1 commit into from
May 28, 2019

Conversation

weaverryan
Copy link
Member

Just some proofreading changes for #10015!

@@ -1,7 +1,7 @@
.. index::
single: Messenger; Record messages; Transaction messages

Transactional Messages: Handle Events After CommandHandler is Done
Transactional Messages: Handle New Messages After Handling is Done
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit tricky: in Messenger, messages are called messages. If you're using Messenger as an event bus, you can of course call them events. I'm mostly using the word "message" to keep consistent with messenger (and not confuse with the EventDispatcher), though I keep "event" wording in the code examples.

],
],
]);

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code block didn't seem relevant anymore. I think it originally came from when dispatch_after_current_bus was not going to be included as a default middleware, so you needed to show how it was added to config.

.. note::

If ``WhenUserRegisteredThenSendWelcomeEmail`` throws an exception, that exception
will be wrapped into a ``DelayedMessageHandlingException``. Using ``DelayedMessageHandlingException::getExceptions``
will give you all exceptions that are thrown while handing a message with the ``DispatchAfterCurrentBusStamp``.

The ``dispatch_after_current_bus`` middleware is enabled by default. If you're
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 spaces after “The”

@javiereguiluz
Copy link
Member

Thanks Ryan.

javiereguiluz added a commit to javiereguiluz/symfony-docs that referenced this pull request May 28, 2019
…dleware entry (weaverryan)

This PR was merged into the 4.3 branch.

Discussion
----------

[Messenger] Tweaks for DispatchAfterCurrentBusMiddleware entry

Just some proofreading changes for symfony#10015!

Commits
-------

599d10b minor reorg of new DispatchAfterCurrentBusMiddleware
@javiereguiluz javiereguiluz merged commit 599d10b into symfony:4.3 May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants