From 17361011b1adc5367d77dea632f97df9f7f7703c Mon Sep 17 00:00:00 2001 From: Denny Lubitz Date: Fri, 28 Jul 2023 16:31:36 +0200 Subject: [PATCH] TASK: Replace getService method with new buildService method to build service of a content repository --- Classes/Controller/BackendController.php | 2 +- Classes/Fusion/Helper/ContentDimensionsHelper.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/Controller/BackendController.php b/Classes/Controller/BackendController.php index 845c494cb2..fdfbe4b711 100644 --- a/Classes/Controller/BackendController.php +++ b/Classes/Controller/BackendController.php @@ -155,7 +155,7 @@ public function indexAction(string $node = null) $this->redirectToUri($this->uriBuilder->uriFor('index', [], 'Login', 'Neos.Neos')); } - $backendControllerInternals = $this->contentRepositoryRegistry->getService( + $backendControllerInternals = $this->contentRepositoryRegistry->buildService( $siteDetectionResult->contentRepositoryId, new BackendControllerInternalsFactory() ); diff --git a/Classes/Fusion/Helper/ContentDimensionsHelper.php b/Classes/Fusion/Helper/ContentDimensionsHelper.php index 05095965d2..7008f58a68 100644 --- a/Classes/Fusion/Helper/ContentDimensionsHelper.php +++ b/Classes/Fusion/Helper/ContentDimensionsHelper.php @@ -34,7 +34,7 @@ class ContentDimensionsHelper implements ProtectedContextAwareInterface */ public function contentDimensionsByName(ContentRepositoryId $contentRepositoryId): array { - $contentDimensionHelperInternals = $this->contentRepositoryRegistry->getService($contentRepositoryId, new ContentDimensionsHelperInternalsFactory()); + $contentDimensionHelperInternals = $this->contentRepositoryRegistry->buildService($contentRepositoryId, new ContentDimensionsHelperInternalsFactory()); assert($contentDimensionHelperInternals instanceof ContentDimensionsHelperInternals); $contentDimensionSource = $contentDimensionHelperInternals->contentDimensionSource; @@ -70,7 +70,7 @@ public function contentDimensionsByName(ContentRepositoryId $contentRepositoryId */ public function allowedPresetsByName(DimensionSpacePoint $dimensions, ContentRepositoryId $contentRepositoryId): array { - $contentDimensionHelperInternals = $this->contentRepositoryRegistry->getService($contentRepositoryId, new ContentDimensionsHelperInternalsFactory()); + $contentDimensionHelperInternals = $this->contentRepositoryRegistry->buildService($contentRepositoryId, new ContentDimensionsHelperInternalsFactory()); $contentDimensionSource = $contentDimensionHelperInternals->contentDimensionSource; // TODO: re-implement this here; currently EVERYTHING is allowed!!