Skip to content

Navigation Menu

Sign inAppearance settings
Appearance settings

Commit 5ba4ead

Browse filesBrowse the repository at this point in the historyBrowse files
committed
Document stamps in HandleTrait::handle
1 parent d53cc63 commit 5ba4ead
Copy full SHA for 5ba4ead

1 file changed

+9Lines changed: 9 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎messenger.rst‎

Copy file name to clipboardExpand all lines: messenger.rst
+9Lines changed: 9 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2512,6 +2512,15 @@ wherever you need a query bus behavior instead of the ``MessageBusInterface``::
25122512
}
25132513
}
25142514

2515+
You also can also specify stamps when handling a message. For example, you can
2516+
add an ``DoctrineFlushStamp`` to flush the entity manager after handling the message::
2517+
2518+
$this->handle(new SomeMessage($data), [new DoctrineFlushStamp()]);
2519+
2520+
.. versionadded:: 7.3
2521+
2522+
The ``$stamps`` parameter was introduced in Symfony 7.3.
2523+
25152524
Customizing Handlers
25162525
--------------------
25172526

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.