W3cubDocs

/Symfony 4.1

DecoderInterface

interface DecoderInterface

Methods

Envelope decode(array $encodedEnvelope)

Decodes an envelope and its message from an encoded-form.

Details

Envelope decode(array $encodedEnvelope)

Decodes an envelope and its message from an encoded-form.

The $encodedEnvelope parameter is a key-value array that describes the envelope and its content, that will be used by the different transports.

The most common keys are: - body (string) - the message body - headers (string) - a key/value pair of headers

Parameters

array $encodedEnvelope

Return Value

Envelope