Skip to content

Commit

Permalink
Merge pull request #637 from malarzm/docs-messenger
Browse files Browse the repository at this point in the history
Add section for Messenger integration
  • Loading branch information
malarzm committed Jun 4, 2020
2 parents cd0dd9d + 651741e commit df06065
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Resources/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ helping you to configure and use it in your application.
first_steps
form_validation
security_bundle
messenger
events
console
cookbook/registration_form
Expand Down
8 changes: 8 additions & 0 deletions Resources/doc/messenger.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Messenger Integration
=====================

When using Symfony 4.4 or later, the bundle automatically registers a `Messenger`_
event subscriber that clears all document managers after handling messages, which
helps to isolate each handler and guard against reading out-of-date document data.

.. _`Messenger`: https://symfony.com/doc/current/components/messenger.html

0 comments on commit df06065

Please sign in to comment.