Add transport in subscriber's phpdoc

This commit is contained in:
Samuel ROZE 2019-05-12 16:09:02 +01:00
parent 6c5faef5cb
commit 6a542cd738

View File

@ -32,13 +32,14 @@ interface MessageSubscriberInterface extends MessageHandlerInterface
* yield FirstMessage::class => ['priority' => 0]; * yield FirstMessage::class => ['priority' => 0];
* yield SecondMessage::class => ['priority => -10]; * 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 FirstMessage::class => ['method' => 'firstMessageMethod'];
* yield SecondMessage::class => [ * yield SecondMessage::class => [
* 'method' => 'secondMessageMethod', * 'method' => 'secondMessageMethod',
* 'priority' => 20, * 'priority' => 20,
* 'bus' => 'my_bus_name', * '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 * The benefit of using `yield` instead of returning an array is that you can `yield` multiple times the