Skip to content

Commit

Permalink
Merge pull request neos#3585 from neos/90/replace-get-service
Browse files Browse the repository at this point in the history
TASK: Replace getService method with new buildService method to build service of a content repository
  • Loading branch information
mhsdesign authored Jul 31, 2023
2 parents 49a3c65 + 1736101 commit 375b20a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Classes/Controller/BackendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
Expand Down
4 changes: 2 additions & 2 deletions Classes/Fusion/Helper/ContentDimensionsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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!!
Expand Down

0 comments on commit 375b20a

Please sign in to comment.