From ea3eaa6a97316fb9bcfd2538301cabdec10e15d2 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Mon, 2 Dec 2024 15:32:39 +0100 Subject: [PATCH] TASK: Introduce `getPropertyConverter` to denote that this is really internal --- .../src/DoctrineDbalContentGraphProjectionFactory.php | 2 +- .../src/HypergraphProjectionFactory.php | 2 +- .../Classes/Factory/SubscriberFactoryDependencies.php | 10 +++++++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Neos.ContentGraph.DoctrineDbalAdapter/src/DoctrineDbalContentGraphProjectionFactory.php b/Neos.ContentGraph.DoctrineDbalAdapter/src/DoctrineDbalContentGraphProjectionFactory.php index 0d69c3c6a22..f63308efc43 100644 --- a/Neos.ContentGraph.DoctrineDbalAdapter/src/DoctrineDbalContentGraphProjectionFactory.php +++ b/Neos.ContentGraph.DoctrineDbalAdapter/src/DoctrineDbalContentGraphProjectionFactory.php @@ -34,7 +34,7 @@ public function build( $nodeFactory = new NodeFactory( $projectionFactoryDependencies->contentRepositoryId, - $projectionFactoryDependencies->propertyConverter, + $projectionFactoryDependencies->getPropertyConverter(), $dimensionSpacePointsRepository ); diff --git a/Neos.ContentGraph.PostgreSQLAdapter/src/HypergraphProjectionFactory.php b/Neos.ContentGraph.PostgreSQLAdapter/src/HypergraphProjectionFactory.php index a70b0d5d148..b2775d8b69c 100644 --- a/Neos.ContentGraph.PostgreSQLAdapter/src/HypergraphProjectionFactory.php +++ b/Neos.ContentGraph.PostgreSQLAdapter/src/HypergraphProjectionFactory.php @@ -36,7 +36,7 @@ public function build( $nodeFactory = new NodeFactory( $projectionFactoryDependencies->contentRepositoryId, - $projectionFactoryDependencies->propertyConverter + $projectionFactoryDependencies->getPropertyConverter() ); return new HypergraphProjection( diff --git a/Neos.ContentRepository.Core/Classes/Factory/SubscriberFactoryDependencies.php b/Neos.ContentRepository.Core/Classes/Factory/SubscriberFactoryDependencies.php index da09885a2fa..1bd43162bc4 100644 --- a/Neos.ContentRepository.Core/Classes/Factory/SubscriberFactoryDependencies.php +++ b/Neos.ContentRepository.Core/Classes/Factory/SubscriberFactoryDependencies.php @@ -30,7 +30,7 @@ private function __construct( public NodeTypeManager $nodeTypeManager, public ContentDimensionSourceInterface $contentDimensionSource, public InterDimensionalVariationGraph $interDimensionalVariationGraph, - public PropertyConverter $propertyConverter, + private PropertyConverter $propertyConverter, ) { } @@ -52,4 +52,12 @@ public static function create( $propertyConverter ); } + + /** + * @internal only to be used for custom content graph integrations to build a node property collection + */ + public function getPropertyConverter(): PropertyConverter + { + return $this->propertyConverter; + } }