Skip to content

Commit c3cd85e

Browse files
authored
TASK: Adjust to removal of findChildNodeConnectedThroughEdgeName (#3667)
* TASK: Adjust to rename of `findChildNodeByNodeName` * TASK: Replace `findChildNodeConnectedThroughEdgeName` with `findNodeByPath` * TASK: findNodeByPath now allows node name as argument
1 parent 5a897ef commit c3cd85e

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Classes/Controller/BackendController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function indexAction(string $node = null)
175175
);
176176
$rootNode = $rootNodeAggregate->getNodeByCoveredDimensionSpacePoint($defaultDimensionSpacePoint);
177177

178-
$siteNode = $subgraph->findChildNodeConnectedThroughEdgeName(
178+
$siteNode = $subgraph->findChildNodeByNodeName(
179179
$rootNode->nodeAggregateId,
180180
$siteDetectionResult->siteNodeName->toNodeName()
181181
);

Classes/Domain/Model/Changes/CopyAfter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ public function apply(): void
8181
$contentRepository->handle($command)->block();
8282

8383
$newlyCreatedNode = $this->contentRepositoryRegistry->subgraphForNode($parentNodeOfPreviousSibling)
84-
->findChildNodeConnectedThroughEdgeName(
85-
$parentNodeOfPreviousSibling->nodeAggregateId,
86-
$targetNodeName
84+
->findNodeByPath(
85+
$targetNodeName,
86+
$parentNodeOfPreviousSibling->nodeAggregateId
8787
);
8888
$this->finish($newlyCreatedNode);
8989
// NOTE: we need to run "finish" before "addNodeCreatedFeedback"

Classes/Domain/Model/Changes/CopyBefore.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ public function apply(): void
7474
$contentRepository->handle($command)->block();
7575

7676
$newlyCreatedNode = $this->contentRepositoryRegistry->subgraphForNode($parentNodeOfSucceedingSibling)
77-
->findChildNodeConnectedThroughEdgeName(
78-
$parentNodeOfSucceedingSibling->nodeAggregateId,
79-
$targetNodeName
77+
->findNodeByPath(
78+
$targetNodeName,
79+
$parentNodeOfSucceedingSibling->nodeAggregateId
8080
);
8181
$this->finish($newlyCreatedNode);
8282
// NOTE: we need to run "finish" before "addNodeCreatedFeedback"

Classes/Domain/Model/Changes/CopyInto.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ public function apply(): void
8282
$contentRepository->handle($command)->block();
8383

8484
$newlyCreatedNode = $this->contentRepositoryRegistry->subgraphForNode($parentNode)
85-
->findChildNodeConnectedThroughEdgeName(
86-
$parentNode->nodeAggregateId,
87-
$targetNodeName
85+
->findNodeByPath(
86+
$targetNodeName,
87+
$parentNode->nodeAggregateId
8888
);
8989
$this->finish($newlyCreatedNode);
9090
// NOTE: we need to run "finish" before "addNodeCreatedFeedback"

0 commit comments

Comments
 (0)