src/Envelope/Serializer/StandardMessageInEnvelopeSerializer.php
public function wrapAndSerialize($message)
    {
        $envelope = $this->envelopeFactory->wrapMessageInEnvelope($message);

        $serializedMessage = $this->objectSerializer->serialize($message);

        return $this->objectSerializer->serialize($envelope->withSerializedMessage($serializedMessage));
    }
public function wrapAndSerialize($message)
    {
        $envelope = $this->envelopeFactory->wrapMessageInEnvelope($message);

        $serializedMessage = $this->objectSerializer->serialize($message);

        return $this->objectSerializer->serialize($envelope->withSerializedMessage($serializedMessage));
    }
public function wrapAndSerialize ( $ message ) { $ envelope = $ this -> envelopeFactory -> wrapMessageInEnvelope ( $ message ) ; $ serializedMessage = $ this -> objectSerializer -> serialize ( $ message ) ; return $ this -> objectSerializer -> serialize ( $ envelope -> withSerializedMessage ( $ serializedMessage ) ) ; }
Serialize a Message by wrapping it in an Envelope and serializing the envelope

@{inheritdoc}
Serialize a Message by wrapping it in an Envelope and serializing the envelope