php-enqueue/enqueue-dev

Add ability to add attribute keys in GPS producer

mhv666 opened this issue · 0 comments

Hi, I would like to ask for a Feture Request, to add the ability to add attribute keys when you publish a topic:

public function send(Destination $destination, Message $message): void
{
InvalidDestinationException::assertDestinationInstanceOf($destination, GpsTopic::class);
InvalidMessageException::assertMessageInstanceOf($message, GpsMessage::class);
/** @var Topic $topic */
$topic = $this->context->getClient()->topic($destination->getTopicName());
$topic->publish([
'data' => json_encode($message),
]);
}

In Gps producer there is no way to add attribute keys
image

If I'm not wrong should be something like this:
image