8000 minor #31483 [Messenger] Add `from_transport` in subscriber's phpdoc … · symfony/symfony@3865b78 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3865b78

Browse files
committed
minor #31483 [Messenger] Add from_transport in subscriber's phpdoc (sroze)
This PR was merged into the 4.3 branch. Discussion ---------- [Messenger] Add `from_transport` in subscriber's phpdoc | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | ø | BC breaks? | ø | Deprecations? | ø | Tests pass? | yes | Fixed tickets | #30958 | License | MIT | Doc PR | ø Add the `from_transport` to the subscriber's phpdoc as it was missed from the original PR. Commits ------- 6a542cd Add transport in subscriber's phpdoc
2 parents a326acc + 6a542cd commit 3865b78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Expand all lines: 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