Skip to content

Commit

Permalink
TASK: Adjust to renamed NodeTypeConstraints
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaeslich committed Nov 3, 2023
1 parent c51796d commit 8873dc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Fusion/XmlSitemapUrlsImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
use Neos\ContentRepository\Core\NodeType\NodeTypeName;
use Neos\ContentRepository\Core\NodeType\NodeTypeNames;
use Neos\ContentRepository\Core\Projection\ContentGraph\Filter\FindSubtreeFilter;
use Neos\ContentRepository\Core\Projection\ContentGraph\Filter\NodeType\NodeTypeCriteria;
use Neos\ContentRepository\Core\Projection\ContentGraph\Node;
use Neos\ContentRepository\Core\Projection\ContentGraph\NodeTypeConstraints;
use Neos\ContentRepository\Core\Projection\ContentGraph\Subtree;
use Neos\ContentRepositoryRegistry\ContentRepositoryRegistry;
use Neos\Flow\Annotations as Flow;
Expand Down Expand Up @@ -105,7 +105,7 @@ public function evaluate(): array

$subtree = $subgraph->findSubtree(
$startingPoint->nodeAggregateId,
FindSubtreeFilter::create(NodeTypeConstraints::create($nodeTypeNames, NodeTypeNames::createEmpty()))
FindSubtreeFilter::create(nodeTypes: NodeTypeCriteria::create($nodeTypeNames, NodeTypeNames::createEmpty()))
);

$this->collectItems($items, $subtree);
Expand Down Expand Up @@ -171,7 +171,7 @@ protected function collectItems(array &$items, Subtree $subtree): void
$subgraph = $this->contentRepositoryRegistry->subgraphForNode($node);
$contentSubtree = $subgraph->findSubtree(
$node->nodeAggregateId,
FindSubtreeFilter::create(NodeTypeConstraints::create($nodeTypeNames, NodeTypeNames::createEmpty()))
FindSubtreeFilter::create(nodeTypes: NodeTypeCriteria::create($nodeTypeNames, NodeTypeNames::createEmpty()))
);

$this->resolveImages($contentSubtree, $item);
Expand Down

0 comments on commit 8873dc1

Please sign in to comment.