Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit97d301a

Browse files
Fan2Shrekjaviereguiluz
authored andcommitted
[Messenger] Document stamps in HandleTrait::handle
1 parentd53cc63 commit97d301a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎messenger.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2512,6 +2512,20 @@ wherever you need a query bus behavior instead of the ``MessageBusInterface``::
25122512
}
25132513
}
25142514

2515+
You also can also add 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+
..note::
2521+
2522+
If adding a stamp of the same type that already exists in the envelope,
2523+
both stamps will be kept (see `Envelopes & Stamps`_).
2524+
2525+
..versionadded::7.3
2526+
2527+
The ``$stamps`` parameter on the handle method was introduced in Symfony 7.3.
2528+
25152529
Customizing Handlers
25162530
--------------------
25172531

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp