Added upgrade to HandlersLocator

This commit is contained in:
Alexander Schranz 2018-11-30 09:48:56 +01:00 committed by Nicolas Grekas
parent 4ea6f649dc
commit d4edb1b966
1 changed files with 17 additions and 0 deletions

View File

@ -285,6 +285,23 @@ Messenger
```
* The `EncoderInterface` and `DecoderInterface` interfaces have been replaced by a unified `Symfony\Component\Messenger\Transport\Serialization\SerializerInterface`.
Each interface method have been merged untouched into the `Serializer` interface, so you can simply merge your two implementations together and implement the new interface.
* The `HandlerLocator` class was replaced with `Symfony\Component\Messenger\Handler\HandlersLocator`.
Before:
```php
new HandlerLocator([
YourMessage::class => $handlerCallable,
]);
```
After:
```php
new HandlersLocator([
YourMessage::class => [
$handlerCallable,
]
]);
```
Monolog
-------