0.7.0 Dev Release
Pre-release
Pre-release
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 toEventEngine::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!
- Call