2018-08-23 13:14:20 +01:00
CHANGELOG
=========
4.2.0
-----
2018-10-03 08:10:03 +01:00
* The component is not experimental anymore
2018-10-18 09:53:38 +01:00
* All the changes below are BC BREAKS
2018-10-17 17:40:36 +01:00
* `MessageBusInterface::dispatch()` and `MiddlewareInterface::handle()` now return `void`
2018-10-18 13:51:08 +01:00
* `MiddlewareInterface::handle()` now require an `Envelope` as first argument
* `EnvelopeAwareInterface` has been removed
2018-10-18 09:53:38 +01:00
* The signature of `Amqp*` classes changed to take a `Connection` as a first argument and an optional
2018-09-10 07:16:50 +01:00
`Serializer` as a second argument.
2018-10-18 09:53:38 +01:00
* `SenderLocator` has been renamed to `ContainerSenderLocator`
2018-09-08 08:19:24 +01:00
Be careful as there is still a `SenderLocator` class, but it does not rely on a `ContainerInterface` to find senders.
Instead, it accepts the sender instance itself instead of its identifier in the container.
2018-10-18 09:53:38 +01:00
* `MessageSubscriberInterface::getHandledMessages()` return value has changed. The value of an array item
2018-09-10 07:16:50 +01:00
needs to be an associative array or the method name.
2018-08-23 13:14:20 +01:00
* `ValidationMiddleware::handle()` and `SendMessageMiddleware::handle()` now require an `Envelope` object
2018-10-18 09:53:38 +01:00
* `StampInterface` replaces `EnvelopeItemInterface` and doesn't extend `Serializable` anymore
* The `ConsumeMessagesCommand` class now takes an instance of `Psr\Container\ContainerInterface`
2018-08-26 14:23:37 +01:00
as first constructor argument
2018-10-18 09:53:38 +01:00
* The `EncoderInterface` and `DecoderInterface` have been replaced by a unified `Symfony\Component\Messenger\Transport\Serialization\SerializerInterface` .
* The locator passed to `ContainerHandlerLocator` should not prefix its keys by "handler." anymore
* The `AbstractHandlerLocator::getHandler()` method uses `?callable` as return type
* Renamed `EnvelopeItemInterface` to `StampInterface`
* `Envelope` 's constructor and `with()` method now accept `StampInterface` objects as variadic parameters
* Renamed and moved `ReceivedMessage` , `ValidationConfiguration` and `SerializerConfiguration` in the `Stamp` namespace
* Removed the `WrapIntoReceivedMessage`
2018-10-17 16:45:44 +01:00
* `SenderLocatorInterface::getSenderForMessage()` has been replaced by `getSender(Envelope $envelope)`
* `MessengerDataCollector::getMessages()` returns an iterable, not just an array anymore
* `AbstractHandlerLocator` is now internal
* `HandlerLocatorInterface::resolve()` has been replaced by `getHandler(Envelope $envelope)`
* `SenderLocatorInterface::getSenderForMessage()` has been replaced by `getSender(Envelope $envelope)`
* `SenderInterface::send()` returns `void`
2018-10-03 08:10:03 +01:00
4.1.0
-----
* Introduced the component as experimental