This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Bundle/FrameworkBundle/Tests
Fabien Potencier 7e4de96c03 minor #26909 [Messenger][DX] Uses the adapter name instead of the service 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
-------

b5afb40441 [Messenger][DX] Uses the adapter name instead of the service name
2018-04-16 19:19:59 +02:00
..
CacheWarmer Merge branch '4.0' 2018-03-19 23:38:22 +01:00
Command Improved the lint:xliff command 2018-03-30 10:39:04 +02:00
Console Revert "feature #26698 [Console] Use UTF-8 bullet for listing (ro0NL)" 2018-04-01 10:27:13 +02:00
Controller feature #26281 [FrameworkBundle] keep query in redirect (Simperfit) 2018-03-27 09:45:03 +02:00
DependencyInjection minor #26909 [Messenger][DX] Uses the adapter name instead of the service name (sroze) 2018-04-16 19:19:59 +02:00
EventListener check _controller attribute is a string before parsing it 2017-07-10 18:12:17 +02:00
Fixtures Revert "feature #26698 [Console] Use UTF-8 bullet for listing (ro0NL)" 2018-04-01 10:27:13 +02:00
Functional feature #26121 [FrameworkBundle] feature: add the ability to search a route (Simperfit) 2018-03-21 10:59:31 +01:00
Kernel Deprecate bundle:controller:action and service:method notation 2018-02-21 06:14:04 +01:00
Routing fix test 2018-03-01 11:49:02 +01:00
Templating Merge branch '4.0' 2018-04-02 12:08:33 +02:00
Translation Merge branch '3.3' into 3.4 2017-12-31 07:07:31 +01:00
ClientTest.php [FrameworkBundle] Allow to disable Kernel reboot 2015-03-20 11:50:15 +01:00
TestCase.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00