Add transport in subscriber's phpdoc
This commit is contained in:
parent
6c5faef5cb
commit
6a542cd738
@ -32,13 +32,14 @@ interface MessageSubscriberInterface extends MessageHandlerInterface
|
||||
* yield FirstMessage::class => ['priority' => 0];
|
||||
* yield SecondMessage::class => ['priority => -10];
|
||||
*
|
||||
* It can also specify a method, a priority and/or a bus per message:
|
||||
* It can also specify a method, a priority, a bus and/or a transport per message:
|
||||
*
|
||||
* yield FirstMessage::class => ['method' => 'firstMessageMethod'];
|
||||
* yield SecondMessage::class => [
|
||||
* 'method' => 'secondMessageMethod',
|
||||
* 'priority' => 20,
|
||||
* 'bus' => 'my_bus_name',
|
||||
* 'from_transport' => 'your_transport_name',
|
||||
* ];
|
||||
*
|
||||
* The benefit of using `yield` instead of returning an array is that you can `yield` multiple times the
|
||||
|
Reference in New Issue
Block a user