Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #26909 [Messenger][DX] Uses the adapter name instead of the ser…
…vice name (sroze) This PR was squashed before being merged into the 4.1-dev branch (closes #26909). Discussion ---------- [Messenger][DX] Uses the adapter name instead of the service name | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | ø | License | MIT | Doc PR | ø As a developer, I don't get why I would need to use the service name while I give a name to the adapters. This is basically what this PR means for me in terms of configuration: ```patch framework: messenger: routing: # We want the command below to be handled async with the "messenger.default_sender" (AMQP producer). - 'App\Message\Command\CreateNumber': messenger.sender.amqp + 'App\Message\Command\CreateNumber': amqp adapters: amqp: "%env(AMQP_DSN)%" ``` And in terms of pulling the messages: ```patch - bin/console messenger:consume-messages messenger.receiver.amqp + bin/console messenger:consume-messages amqp ``` Commits ------- b5afb40 [Messenger][DX] Uses the adapter name instead of the service name
- Loading branch information
Showing
4 changed files
with
53 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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