final class ContentRepositoryFactory (View source)

Main factory to build a {ContentRepository} object.

Methods

__construct(ContentRepositoryId $contentRepositoryId, EventStoreInterface $eventStore, NodeTypeManager $nodeTypeManager, ContentDimensionSourceInterface $contentDimensionSource, Serializer $propertySerializer, AuthProviderFactoryInterface $authProviderFactory, ClockInterface $clock, SubscriptionStoreInterface $subscriptionStore, ContentGraphProjectionFactoryInterface $contentGraphProjectionFactory, CatchUpHookFactoryInterface|null $contentGraphCatchUpHookFactory, CommandHooksFactory $commandHooksFactory, ContentRepositorySubscriberFactories $additionalSubscriberFactories, LoggerInterface|null $logger = null, PerformanceTracerInterface|null $performanceTracer = null)

No description

getOrBuild()

Builds and returns the content repository. If it is already built, returns the same instance.

buildService(ContentRepositoryServiceFactoryInterface $serviceFactory)

A service is a high-level "application part" which builds upon the CR internals.

Details

__construct(ContentRepositoryId $contentRepositoryId, EventStoreInterface $eventStore, NodeTypeManager $nodeTypeManager, ContentDimensionSourceInterface $contentDimensionSource, Serializer $propertySerializer, AuthProviderFactoryInterface $authProviderFactory, ClockInterface $clock, SubscriptionStoreInterface $subscriptionStore, ContentGraphProjectionFactoryInterface $contentGraphProjectionFactory, CatchUpHookFactoryInterface|null $contentGraphCatchUpHookFactory, CommandHooksFactory $commandHooksFactory, ContentRepositorySubscriberFactories $additionalSubscriberFactories, LoggerInterface|null $logger = null, PerformanceTracerInterface|null $performanceTracer = null)

No description

Parameters

ContentRepositoryId $contentRepositoryId
EventStoreInterface $eventStore
NodeTypeManager $nodeTypeManager
ContentDimensionSourceInterface $contentDimensionSource
Serializer $propertySerializer
AuthProviderFactoryInterface $authProviderFactory
ClockInterface $clock
SubscriptionStoreInterface $subscriptionStore
ContentGraphProjectionFactoryInterface $contentGraphProjectionFactory
CatchUpHookFactoryInterface|null $contentGraphCatchUpHookFactory
CommandHooksFactory $commandHooksFactory
ContentRepositorySubscriberFactories $additionalSubscriberFactories
LoggerInterface|null $logger
PerformanceTracerInterface|null $performanceTracer

ContentRepository getOrBuild()

Builds and returns the content repository. If it is already built, returns the same instance.

Return Value

ContentRepository

ContentRepositoryServiceInterface buildService(ContentRepositoryServiceFactoryInterface $serviceFactory)

A service is a high-level "application part" which builds upon the CR internals.

You don't usually need this yourself, but it is usually enough to simply use the {\Neos\ContentRepository\Core\ContentRepository} instance. If you want to extend the CR core and need to hook deeply into CR internals, this is what the {\Neos\ContentRepository\Core\Factory\ContentRepositoryServiceInterface} is for.