From 38835ca0ed2c434cda62987bb64c65735963c293 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Mon, 28 Oct 2024 13:14:27 +0100 Subject: [PATCH] TASK: Adjust comments to not reference renamed `NodeAggregateEventPublisher` --- .../Classes/Feature/RebaseableCommand.php | 2 +- .../Tests/Behavior/Features/Bootstrap/CrImportExportTrait.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Neos.ContentRepository.Core/Classes/Feature/RebaseableCommand.php b/Neos.ContentRepository.Core/Classes/Feature/RebaseableCommand.php index 2979d3f3e97..3c8a96272b0 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/RebaseableCommand.php +++ b/Neos.ContentRepository.Core/Classes/Feature/RebaseableCommand.php @@ -81,7 +81,7 @@ public static function enrichWithCommand( if ($i === 0) { if (!$command instanceof \JsonSerializable) { throw new \RuntimeException(sprintf( - 'Command %s must be JSON Serializable to be used with NodeAggregateEventPublisher.', + 'Command %s must be JSON Serializable to be rebase able.', get_class($command) )); } diff --git a/Neos.ContentRepository.Export/Tests/Behavior/Features/Bootstrap/CrImportExportTrait.php b/Neos.ContentRepository.Export/Tests/Behavior/Features/Bootstrap/CrImportExportTrait.php index 852d307dd9f..e603c12fd04 100644 --- a/Neos.ContentRepository.Export/Tests/Behavior/Features/Bootstrap/CrImportExportTrait.php +++ b/Neos.ContentRepository.Export/Tests/Behavior/Features/Bootstrap/CrImportExportTrait.php @@ -155,8 +155,7 @@ public function iExpectTheFollowingJsonL(PyStringNode $string): void $eventsWithoutRandomIds = []; foreach ($exportedEvents as $exportedEvent) { - // we have to remove the event id in \Neos\ContentRepository\Core\Feature\Common\NodeAggregateEventPublisher::enrichWithCommand - // and the initiatingTimestamp to make the events diff able + // we have to remove the event id and initiatingTimestamp to make the events diff able $eventsWithoutRandomIds[] = $exportedEvent ->withIdentifier('random-event-uuid') ->processMetadata(function (array $metadata) {