Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK: WorkspaceWasPublished implement EmbedsWorkspaceName #5431

Open
wants to merge 1 commit into
base: 9.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading