|
@@ -72,7 +72,7 @@ |
|
|
block discarded – undo |
|
72
|
72
|
public function persistEvents(AggregateRootId $aggregateRootId, int $aggregateRootVersion, object ...$events) |
|
73
|
73
|
{ |
|
74
|
74
|
$metadata = [Header::AGGREGATE_ROOT_ID => $aggregateRootId]; |
|
75
|
|
- $messages = array_map(function (object $event) use ($metadata, &$aggregateRootVersion) { |
|
|
75
|
+ $messages = array_map(function(object $event) use ($metadata, &$aggregateRootVersion) { |
|
76
|
76
|
return $this->decorator->decorate(new Message( |
|
77
|
77
|
$event, |
|
78
|
78
|
$metadata + [Header::AGGREGATE_ROOT_VERSION => ++$aggregateRootVersion] |
Please login to merge, or discard this patch.