go1/util_publishing_event

v0.1 2018-11-12 04:52 UTC

This package is auto-updated.

Last update: 2024-04-19 10:58:19 UTC


README

  • Provide the functionality to format the event message.
  • Embed the data to the message depend on the provided pipelines

Usage

$event = new Event($payload, 'message.update');
$pipes = [];
........
$pipes[] = new EventPipeline('type', ['id' => 100]);

$newEvent = (new EventHandler)->process($event, $pipes);