ContentRepository
final class ContentRepository (View source)
Main Entry Point to the system. Encapsulates the full event-sourced Content Repository.
Use this to:
- send commands to the system (to mutate state) via {\Neos\ContentRepository\Core\self::handle()}
- access the content graph read model
- access 3rd party read models via {\Neos\ContentRepository\Core\self::projectionState()}
Methods
No description
The only API to send commands (mutation intentions) to the system.
No description
Main API to retrieve a content subgraph, taking VisibilityConstraints of the current user into account ({AuthProviderInterface::getVisibilityConstraints()})
Returns the workspace with the given name, or NULL if it does not exist in this content repository
Returns all workspaces of this content repository. To limit the set, {Workspaces::find()} and {Workspaces::filter()} can be used as well as {Workspaces::getBaseWorkspaces()} and {Workspaces::getDependantWorkspacesRecursively()}.
No description
No description
No description
Details
__construct(ContentRepositoryId $id, CommandBus $commandBus, EventStoreInterface $eventStore, EventNormalizer $eventNormalizer, SubscriptionEngine $subscriptionEngine, NodeTypeManager $nodeTypeManager, InterDimensionalVariationGraph $variationGraph, ContentDimensionSourceInterface $contentDimensionSource, AuthProviderInterface $authProvider, ClockInterface $clock, ContentGraphReadModelInterface $contentGraphReadModel, CommandHookInterface $commandHook, ProjectionStates $projectionStates, PerformanceTracerInterface|null $performanceTracer)
| internal | use the {@see \Neos\ContentRepository\Core\ContentRepositoryFactory::getOrBuild()} to instantiate |
No description
void
handle(CommandInterface $command)
The only API to send commands (mutation intentions) to the system.
ProjectionStateInterface
projectionState(string $projectionStateClassName)
No description
ContentGraphInterface
getContentGraph(WorkspaceName $workspaceName)
No description
ContentSubgraphInterface
getContentSubgraph(WorkspaceName $workspaceName, DimensionSpacePoint $dimensionSpacePoint)
Main API to retrieve a content subgraph, taking VisibilityConstraints of the current user into account ({AuthProviderInterface::getVisibilityConstraints()})
Workspace|null
findWorkspaceByName(WorkspaceName $workspaceName)
Returns the workspace with the given name, or NULL if it does not exist in this content repository
Workspaces
findWorkspaces()
Returns all workspaces of this content repository. To limit the set, {Workspaces::find()} and {Workspaces::filter()} can be used as well as {Workspaces::getBaseWorkspaces()} and {Workspaces::getDependantWorkspacesRecursively()}.
NodeTypeManager
getNodeTypeManager()
No description
InterDimensionalVariationGraph
getVariationGraph()
No description
ContentDimensionSourceInterface
getContentDimensionSource()
No description