8000 Add transport in subscriber's phpdoc · symfony/symfony@6a542cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 6a542cd

Browse files
committed
Add transport in subscriber's phpdoc
1 parent 6c5faef commit 6a542cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Messenger/Handler/MessageSubscriberInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@ interface MessageSubscriberInterface extends MessageHandlerInterface
3232
* yield FirstMessage::class => ['priority' => 0];
3333
* yield SecondMessage::class => ['priority => -10];
3434
*
35-
* It can also specify a method, a priority and/or a bus per message:
35+
* It can also specify a method, a priority, a bus and/or a transport per message:
3636
*
3737
* yield FirstMessage::class => ['method' => 'firstMessageMethod'];
3838
* yield SecondMessage::class => [
3939
* 'method' => 'secondMessageMethod',
4040
* 'priority' => 20,
4141
* 'bus' => 'my_bus_name',
42+
* 'from_transport' => 'your_transport_name',
4243
* ];
4344
*
4445
* The benefit of using `yield` instead of returning an array is that you can `yield` multiple times the

0 commit comments

Comments
 (0)
0