diff --git a/Neos.ContentRepositoryRegistry/Configuration/Objects.yaml b/Neos.ContentRepositoryRegistry/Configuration/Objects.yaml index 68b115d26bf..113f828b6d6 100644 --- a/Neos.ContentRepositoryRegistry/Configuration/Objects.yaml +++ b/Neos.ContentRepositoryRegistry/Configuration/Objects.yaml @@ -21,3 +21,13 @@ Neos\ContentRepository\Core\Projection\Workspace\WorkspaceProjectionFactory: value: Neos\ContentRepository\Core\Projection\Workspace\WorkspaceProjectionFactory 2: object: 'Doctrine\DBAL\Connection' + +# This adds a soft-dependency to the neos/contentgraph-doctrinedbaladapter package +Neos\ContentGraph\DoctrineDbalAdapter\DoctrineDbalContentGraphProjectionFactory: + scope: singleton + factoryObjectName: 'Neos\ContentRepositoryRegistry\Infrastructure\GenericObjectFactory' + arguments: + 1: + value: 'Neos\ContentGraph\DoctrineDbalAdapter\DoctrineDbalContentGraphProjectionFactory' + 2: + object: 'Doctrine\DBAL\Connection' diff --git a/Neos.ContentRepositoryRegistry/Configuration/Settings.yaml b/Neos.ContentRepositoryRegistry/Configuration/Settings.yaml index 37d72c41045..355f22e13d2 100644 --- a/Neos.ContentRepositoryRegistry/Configuration/Settings.yaml +++ b/Neos.ContentRepositoryRegistry/Configuration/Settings.yaml @@ -73,13 +73,7 @@ Neos: factoryObjectName: Neos\ContentRepository\Core\Projection\ContentStream\ContentStreamProjectionFactory 'Neos.ContentRepository:Workspace': factoryObjectName: Neos\ContentRepository\Core\Projection\Workspace\WorkspaceProjectionFactory - # NOTE: the following name must be stable, because we use it f.e. in Neos UI to register - # catchUpHooks for content cache flushing - #'Neos.ContentRepository:ContentGraph': - # factoryObjectName: Neos\ContentGraph\…Adapter\…ContentGraphProjectionFactory - - - - - - + # NOTE: the following name must be stable, because we use it f.e. in Neos UI to register catchUpHooks for content cache flushing + 'Neos.ContentRepository:ContentGraph': + # NOTE: This introduces a soft-dependency to the neos/contentgraph-doctrinedbaladapter package, but it can be overridden when a different adapter is used + factoryObjectName: Neos\ContentGraph\DoctrineDbalAdapter\DoctrineDbalContentGraphProjectionFactory