[Messenger] Add documentation for the disable_default_bind option#21940
Merged
javiereguiluz merged 1 commit intosymfony:8.1from Mar 13, 2026
Merged
[Messenger] Add documentation for the disable_default_bind option#21940javiereguiluz merged 1 commit intosymfony:8.1from
javiereguiluz merged 1 commit intosymfony:8.1from
Conversation
Merged
1 task
nicolas-grekas
added a commit
to symfony/symfony
that referenced
this pull request
Feb 11, 2026
…g via queues option (xammmue) This PR was merged into the 8.1 branch. Discussion ---------- [Messenger][AMQP] Allow disabling default queue binding via queues option [Messenger] Add option disable_default_bind to prevent the creation of or binding to the default messages queue when not defining any queue for an exchange | Q | A | ------------- | --- | Branch? | 8.1 | Bug fix? | no | New feature? | yes | Deprecations? | no | Issues | Fix #63345 | License | MIT When not configuring any queues for an exchange and executing the `messenger:setup` command, a default queue `messages` was created and bound to those exchanges. This PR introduces the possibility to set the queues configuration parameter to `[]` or `false` to prevent the creation of the `messages` queue. Example configuration (`SENDING_EXCHANGE` uses the new configuration option) ``` framework: messenger: transports: exchange_out_1: dsn: '%messenger_transport_dsn%' options: exchange: name: 'SENDING_EXCHANGE_1' type: fanout auto_setup: false queues: false exchange_out_2: dsn: '%messenger_transport_dsn%' options: exchange: name: 'SENDING_EXCHANGE_1' type: fanout auto_setup: false queues: [] incoming_events: dsn: '%messenger_transport_dsn%' options: exchange: name: 'RECEIVING_EXCHANGE' type: direct queues: incoming_events_queue: ~ auto_setup: true ``` TODO: - [x] verify / adapt documentation => symfony/symfony-docs#21940 Commits ------- 006db46 [Messenger][AMQP] Allow disabling default queue binding via queues option
Member
|
Merged! Thanks Max. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relates to symfony/symfony#63346