Skip to content

Commit

Permalink
TASK: Use NodeTypeNameFactory::forSites()
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Oct 12, 2023
1 parent a7b8ecc commit 369d27a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Controller/BackendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
use Neos\Neos\Controller\Backend\MenuHelper;
use Neos\Neos\Domain\Repository\DomainRepository;
use Neos\Neos\Domain\Repository\SiteRepository;
use Neos\Neos\Domain\Service\NodeTypeNameFactory;
use Neos\Neos\Domain\Service\WorkspaceNameBuilder;
use Neos\Neos\FrontendRouting\NodeAddressFactory;
use Neos\Neos\FrontendRouting\SiteDetection\SiteDetectionResult;
Expand Down Expand Up @@ -170,7 +171,7 @@ public function indexAction(string $node = null)
// to call the contentGraph here directly.
$rootNodeAggregate = $contentRepository->getContentGraph()->findRootNodeAggregateByType(
$workspace->currentContentStreamId,
NodeTypeName::fromString('Neos.Neos:Sites')
NodeTypeNameFactory::forSites()
);
$rootNode = $rootNodeAggregate->getNodeByCoveredDimensionSpacePoint($defaultDimensionSpacePoint);

Expand Down

0 comments on commit 369d27a

Please sign in to comment.