From 688dcd0a7aaab6acf448ff17a319150c934f871e Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Wed, 18 Dec 2024 14:31:59 +0100 Subject: [PATCH] TASK: `WorkspaceWasPublished` implement `EmbedsWorkspaceName` --- .../WorkspacePublication/Event/WorkspaceWasPublished.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Event/WorkspaceWasPublished.php b/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Event/WorkspaceWasPublished.php index 7aae6d5be7..59abaab4c8 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Event/WorkspaceWasPublished.php +++ b/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Event/WorkspaceWasPublished.php @@ -15,13 +15,14 @@ */ use Neos\ContentRepository\Core\EventStore\EventInterface; +use Neos\ContentRepository\Core\Feature\Common\EmbedsWorkspaceName; use Neos\ContentRepository\Core\SharedModel\Workspace\ContentStreamId; use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; /** * @api events are the persistence-API of the content repository */ -final readonly class WorkspaceWasPublished implements EventInterface +final readonly class WorkspaceWasPublished implements EventInterface, EmbedsWorkspaceName { public function __construct( /** @@ -58,6 +59,11 @@ public static function fromArray(array $values): self ); } + public function getWorkspaceName(): WorkspaceName + { + return $this->sourceWorkspaceName; + } + public function jsonSerialize(): array { return get_object_vars($this);