interface EncoderInterface
array | encode(Envelope $envelope) Encodes an envelope content (message & items) to a common format understandable by transports. |
Encodes an envelope content (message & items) to a common format understandable by transports.
The encoded array should only contain scalar and arrays.
The most common keys of the encoded array are: - body
(string) - the message body - headers
(string
Envelope | $envelope | The envelop containing the message put on the MessageBus by the user |
array |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Messenger/Transport/Serialization/EncoderInterface.html