We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dc0d5c8 + 7a2c7a9 commit ba6f65dCopy full SHA for ba6f65d
messenger.rst
@@ -3062,12 +3062,10 @@ Let's say you want to create a message decoder::
3062
{
3063
public function decode(array $encodedEnvelope): Envelope
3064
3065
- $envelope = \json_decode($encodedEnvelope, true);
3066
-
3067
try {
3068
// parse the data you received with your custom fields
3069
- $data = $envelope['data'];
3070
- $data['token'] = $envelope['token'];
+ $data = $encodedEnvelope['data'];
+ $data['token'] = $encodedEnvelope['token'];
3071
3072
// other operations like getting information from stamps
3073
} catch (\Throwable $throwable) {
0 commit comments