Skip to content

0.7.0 Dev Release

Pre-release
Pre-release

Choose a tag to compare

@codeliner codeliner released this 16 Aug 08:56
· 48 commits to master since this release
07b994f

Added

  • #10 Add option to forward metadata
    • Call EventEngine::enableMetadataForwarding() during set up phase of the Event Engine to enable the new feature. Once enabled you can pass an array of metadata to EventEngine::dispatch() and Event Engine will add the metadata to all messages caused by the dispatch call. This includes recorded events, follow up commands, events caused by follow up commands, etc. Even when dispatching custom messages you can pass metadata as an array: $eventEngine->dispatch($myCustomCmd, [], ['metadata' => 'goes here']); Please note: when using prooph v7 event-store your metadata array should only contain keys with scalar values!