Skip to content

Commit

Permalink
Add neos/contentgraph-doctrinedbaladapter config
Browse files Browse the repository at this point in the history
to `neos/contentrepositoryregistry` for now
  • Loading branch information
bwaidelich committed May 19, 2024
1 parent f00bce7 commit 4d81a81
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
10 changes: 10 additions & 0 deletions Neos.ContentRepositoryRegistry/Configuration/Objects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
14 changes: 4 additions & 10 deletions Neos.ContentRepositoryRegistry/Configuration/Settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4d81a81

Please sign in to comment.