src/Dispatcher.php
private function messageLoggerContext(MessageInterface $message): array
    {
        return [
            'id' => $message->getId(),
            'created' => $message->getCreated(),
            'type' => $message->getType(),
            'payload' => $message->getPayload(),
        ];
    }
private function messageLoggerContext(MessageInterface $message): array
    {
        return [
            'id' => $message->getId(),
            'created' => $message->getCreated(),
            'type' => $message->getType(),
            'payload' => $message->getPayload(),
        ];
    }
private function messageLoggerContext ( MessageInterface $ message ) : array { return [ 'id' => $ message -> getId ( ) , 'created' => $ message -> getCreated ( ) , 'type' => $ message -> getType ( ) , 'payload' => $ message -> getPayload ( ) , ] ; }
Serialize message to logger context

@param MessageInterface $message

@return array
Serialize message to logger context