Skip to content

Commit

Permalink
Merge pull request #3868 from neos/task/add-workspace-contentstream-m…
Browse files Browse the repository at this point in the history
…apping-to-contentgraph

TASK: Adjust to Add workspace content stream mapping to content graph projection
  • Loading branch information
mhsdesign authored Oct 15, 2024
2 parents 55bb058 + 88fef54 commit bd4a4b0
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 bd4a4b0

Please sign in to comment.