Added upgrade to HandlersLocator
This commit is contained in:
parent
4ea6f649dc
commit
d4edb1b966
|
@ -285,6 +285,23 @@ Messenger
|
||||||
```
|
```
|
||||||
* The `EncoderInterface` and `DecoderInterface` interfaces have been replaced by a unified `Symfony\Component\Messenger\Transport\Serialization\SerializerInterface`.
|
* 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.
|
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
|
Monolog
|
||||||
-------
|
-------
|
||||||
|
|
Reference in New Issue