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

Appearance settings

Commit 3865b78

Browse filesBrowse 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
Copy full SHA for 3865b78

File tree

1 file changed

+2
-1
lines changed
Filter options

1 file changed

+2
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Handler/MessageSubscriberInterface.php
+2-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.