From 88fef54e975b1d26459f50a75362d5b5323a7575 Mon Sep 17 00:00:00 2001 From: Bastian Waidelich Date: Tue, 15 Oct 2024 11:19:31 +0200 Subject: [PATCH] TASK: Adjust to Add workspace content stream mapping to content graph projection Neos.Ui counter part for https://github.com/neos/neos-development-collection/pull/5096 --- .../Domain/Model/Feedback/Operations/UpdateWorkspaceInfo.php | 2 +- Classes/Fusion/Helper/NodeInfoHelper.php | 2 +- Classes/Infrastructure/Configuration/ConfigurationProvider.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/Domain/Model/Feedback/Operations/UpdateWorkspaceInfo.php b/Classes/Domain/Model/Feedback/Operations/UpdateWorkspaceInfo.php index 7fd86f0961..d123ae7e15 100644 --- a/Classes/Domain/Model/Feedback/Operations/UpdateWorkspaceInfo.php +++ b/Classes/Domain/Model/Feedback/Operations/UpdateWorkspaceInfo.php @@ -99,7 +99,7 @@ public function isSimilarTo(FeedbackInterface $feedback) public function serializePayload(ControllerContext $controllerContext) { $contentRepository = $this->contentRepositoryRegistry->get($this->contentRepositoryId); - $workspace = $contentRepository->getWorkspaceFinder()->findOneByName($this->workspaceName); + $workspace = $contentRepository->findWorkspaceByName($this->workspaceName); if ($workspace === null) { return null; } diff --git a/Classes/Fusion/Helper/NodeInfoHelper.php b/Classes/Fusion/Helper/NodeInfoHelper.php index 225a968604..dc254bad4b 100644 --- a/Classes/Fusion/Helper/NodeInfoHelper.php +++ b/Classes/Fusion/Helper/NodeInfoHelper.php @@ -358,7 +358,7 @@ public function createRedirectToNode(Node $node, ActionRequest $actionRequest): { // we always want to redirect to the node in the base workspace. $contentRepository = $this->contentRepositoryRegistry->get($node->contentRepositoryId); - $workspace = $contentRepository->getWorkspaceFinder()->findOneByName($node->workspaceName); + $workspace = $contentRepository->findWorkspaceByName($node->workspaceName); $nodeAddress = NodeAddress::create( $node->contentRepositoryId, diff --git a/Classes/Infrastructure/Configuration/ConfigurationProvider.php b/Classes/Infrastructure/Configuration/ConfigurationProvider.php index f18d4e05f3..15e1752c2c 100644 --- a/Classes/Infrastructure/Configuration/ConfigurationProvider.php +++ b/Classes/Infrastructure/Configuration/ConfigurationProvider.php @@ -98,7 +98,7 @@ private function getAllowedTargetWorkspaces(ContentRepository $contentRepository return []; } $result = []; - foreach ($contentRepository->getWorkspaceFinder()->findAll() as $workspace) { + foreach ($contentRepository->findWorkspaces() as $workspace) { $workspaceMetadata = $this->workspaceService->getWorkspaceMetadata($contentRepository->id, $workspace->workspaceName); if (!in_array($workspaceMetadata->classification, [WorkspaceClassification::ROOT, WorkspaceClassification::SHARED], true)) { continue;