go1/util_publishing_event

This package's canonical repository appears to be gone and the package has been frozen as a result.

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

This package is auto-updated.

Last update: 2024-05-14 01:30:42 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);