Message Publisher
Modules Providing Support
Message Publisher Interface
interface MessagePublisher
{
// 1
public function send(string $data, string $sourceMediaType = MediaType::TEXT_PLAIN) : void;
// 2
public function sendWithMetadata(string $data, array $metadata, string $sourceMediaType = MediaType::TEXT_PLAIN) : void;
// 3
public function convertAndSend(object|array $data) : void;
// 4
public function convertAndSendWithMetadata(object|array $data, array $metadata) : void;
}How to use Message Publisher
Last updated
Was this helpful?