Skip to content

Commit

Permalink
TASK: Adjust to Add workspace content stream mapping to content graph…
Browse files Browse the repository at this point in the history
… projection

Neos.Ui counter part for neos/neos-development-collection#5096
  • Loading branch information
bwaidelich committed Oct 15, 2024
1 parent 55bb058 commit 88fef54
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion Classes/Fusion/Helper/NodeInfoHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 88fef54

Please sign in to comment.