Skip to content

Commit

Permalink
TASK: WorkspaceWasPublished implement EmbedsWorkspaceName
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Jan 9, 2025
1 parent f20b28c commit 688dcd0
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
/**
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 688dcd0

Please sign in to comment.