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/Component
Fabien Potencier e980ce40e2 feature #28399 [Messenger] Add a SenderLocator decoupled from ContainerInterface (fabpot)
This PR was merged into the 4.2-dev branch.

Discussion
----------

[Messenger] Add a SenderLocator decoupled from ContainerInterface

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | yes
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | upcoming

For handler locators, we have a generic `HandlerLocator` class that takes a simple mapping instead of a service locator. The same did not exist for sender locators. So, this PR adds this possibility as well. That allows for something like this:

```php
new MessageBus([
    new SendMessageMiddleware(new SenderLocator([
        Message::class => new AmqpTransport($encoderDecoder, $encoderDecoder, $connection),
    ])),
    new HandleMessageMiddleware(new HandlerLocator([
        Message::class => new MessageHandler(),
    ])),
]);
```

Commits
-------

e658e155aa [Messenger] added a SenderLocator decoupled from ContainerInterface
2018-09-08 14:31:58 +02:00
..
Asset Mark ExceptionInterfaces throwable 2018-08-29 17:58:00 +02:00
BrowserKit Merge branch '4.1' 2018-07-26 11:13:01 +02:00
Cache [Cache] leverage Contracts\Cache 2018-09-04 09:24:06 +02:00
Config [DI] leverage Contracts\Service 2018-09-04 19:12:10 +02:00
Console feature #22225 [Console] Support formatted text cutting (ro0NL) 2018-09-04 22:10:18 +02:00
CssSelector Mark ExceptionInterfaces throwable 2018-08-29 17:58:00 +02:00
Debug Improve support for anonymous classes 2018-08-21 14:03:16 +02:00
DependencyInjection Merge branch '4.1' 2018-09-05 14:00:05 +02:00
DomCrawler Merge branch '4.1' 2018-09-02 18:48:09 +01:00
Dotenv minor #28359 [Dotenv] use array instead of variadic in Dotenv::doLoad() (fmata) 2018-09-05 10:57:29 +02:00
EventDispatcher Merge branch '4.1' 2018-07-26 11:13:01 +02:00
ExpressionLanguage Merge branch '4.1' 2018-07-26 11:13:01 +02:00
Filesystem minor #28307 Mark ExceptionInterfaces throwable #2 (ostrolucky) 2018-09-04 18:55:13 +02:00
Finder [Finder] fix merge 2018-09-05 19:51:25 +02:00
Form minor #28307 Mark ExceptionInterfaces throwable #2 (ostrolucky) 2018-09-04 18:55:13 +02:00
HttpFoundation fixed CS 2018-09-04 10:29:18 +02:00
HttpKernel [HttpKernel][Profiler] Add arg value resolver category in performances panel 2018-09-07 12:37:30 +02:00
Inflector Merge branch '4.1' 2018-07-26 10:59:12 +02:00
Intl Mark ExceptionInterfaces throwable 2018-08-29 17:58:00 +02:00
Ldap Mark ExceptionInterfaces throwable 2018-08-29 17:58:00 +02:00
Lock minor #28307 Mark ExceptionInterfaces throwable #2 (ostrolucky) 2018-09-04 18:55:13 +02:00
Messenger feature #28399 [Messenger] Add a SenderLocator decoupled from ContainerInterface (fabpot) 2018-09-08 14:31:58 +02:00
OptionsResolver minor #28307 Mark ExceptionInterfaces throwable #2 (ostrolucky) 2018-09-04 18:55:13 +02:00
Process minor #28307 Mark ExceptionInterfaces throwable #2 (ostrolucky) 2018-09-04 18:55:13 +02:00
PropertyAccess Mark ExceptionInterfaces throwable 2018-08-29 17:58:00 +02:00
PropertyInfo [PropertyInfo] fix BC break in PropertyInfoPass 2018-09-05 11:02:25 +02:00
Routing Revert "minor #28321 [Routing] Fixed the interface description of the url generator interface (Toflar)" 2018-09-05 07:00:57 +02:00
Security minor #28307 Mark ExceptionInterfaces throwable #2 (ostrolucky) 2018-09-04 18:55:13 +02:00
Serializer minor #28307 Mark ExceptionInterfaces throwable #2 (ostrolucky) 2018-09-04 18:55:13 +02:00
Stopwatch Merge branch '4.1' 2018-07-26 13:01:15 +02:00
Templating Fix code examples in PHPDoc 2018-08-29 15:11:53 +02:00
Translation minor #28307 Mark ExceptionInterfaces throwable #2 (ostrolucky) 2018-09-04 18:55:13 +02:00
Validator [Validator] Deprecate validating DateTimeInterface in Date|Time|DateTime constraints 2018-09-08 08:57:33 +02:00
VarDumper Fix #28370: First time dump() method call not working issue 2018-09-06 23:01:56 +06:00
VarExporter [VarExporter] fix exporting objects that mutate on __sleep() 2018-09-05 15:34:16 +02:00
WebLink Merge branch '4.1' 2018-07-26 11:13:01 +02:00
Workflow Merge branch '4.1' 2018-09-05 14:00:05 +02:00
Yaml minor #28307 Mark ExceptionInterfaces throwable #2 (ostrolucky) 2018-09-04 18:55:13 +02:00