Skip to content

fix XML options config example #13278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ etc) instead of the object::

// src/Message/NewUserWelcomeEmail.php
namespace App\Message;

class NewUserWelcomeEmail
{
private $userId;
Expand Down Expand Up @@ -538,7 +538,9 @@ different messages to them. For example:
<framework:messenger>
<framework:transport name="async_priority_high" dsn="%env(MESSENGER_TRANSPORT_DSN)%">
<framework:options>
<framework:queue_name>high</framework:queue_name>
<framework:queue>
<framework:name>Queue</framework:name>
</framework:queue>
</framework:options>
</framework:transport>
<framework:transport name="async_priority_low" dsn="%env(MESSENGER_TRANSPORT_DSN)%">
Expand Down Expand Up @@ -846,7 +848,11 @@ The transport has a number of options:
<framework:messenger>
<framework:transport name="async_priority_high" dsn="%env(MESSENGER_TRANSPORT_DSN)%?queue_name=high_priority"/>
<framework:transport name="async_priority_low" dsn="%env(MESSENGER_TRANSPORT_DSN)%">
<framework:option queue_name="normal_priority"/>
<framework:options>
<framework:queue>
<framework:name>normal_priority</framework:name>
</framework:queue>
</framework:options>
</framework:transport>
</framework:messenger>
</framework:config>
Expand Down