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!!