MediaWiki  master
Revision\RevisionStoreFactory Class Reference

Factory service for RevisionStore instances. More...

Collaboration diagram for Revision\RevisionStoreFactory:

Public Member Functions

 __construct (ILBFactory $dbLoadBalancerFactory, BlobStoreFactory $blobStoreFactory, NameTableStoreFactory $nameTables, SlotRoleRegistry $slotRoleRegistry, WANObjectCache $cache, CommentStore $commentStore, ActorMigration $actorMigration, LoggerInterface $logger, IContentHandlerFactory $contentHandlerFactory, HookContainer $hookContainer)
 
 getRevisionStore ( $dbDomain=false)
 

Private Attributes

ActorMigration $actorMigration
 
BlobStoreFactory $blobStoreFactory
 
WANObjectCache $cache
 
CommentStore $commentStore
 
IContentHandlerFactory $contentHandlerFactory
 
ILBFactory $dbLoadBalancerFactory
 
HookContainer $hookContainer
 
LoggerInterface $logger
 
NameTableStoreFactory $nameTables
 
SlotRoleRegistry $slotRoleRegistry
 

Detailed Description

Factory service for RevisionStore instances.

This allows RevisionStores to be created for cross-wiki access.

Warning
Beware compatibility issues with schema migration in the context of cross-wiki access! This class assumes that all wikis are at compatible migration stages for all relevant schemas. Relevant schemas are: revision storage (MCR), the revision comment table, and the actor table. Migration stages are compatible as long as a) there are no wikis in the cluster that only write the old schema or b) there are no wikis that read only the new schema.
Since
1.32

Definition at line 51 of file RevisionStoreFactory.php.

Constructor & Destructor Documentation

◆ __construct()

Revision\RevisionStoreFactory::__construct ( ILBFactory  $dbLoadBalancerFactory,
BlobStoreFactory  $blobStoreFactory,
NameTableStoreFactory  $nameTables,
SlotRoleRegistry  $slotRoleRegistry,
WANObjectCache  $cache,
CommentStore  $commentStore,
ActorMigration  $actorMigration,
LoggerInterface  $logger,
IContentHandlerFactory  $contentHandlerFactory,
HookContainer  $hookContainer 
)

Member Function Documentation

◆ getRevisionStore()

Revision\RevisionStoreFactory::getRevisionStore (   $dbDomain = false)
Since
1.32
Parameters
bool | string$dbDomainDB domain of the relevant wiki or false for the current one
Returns
RevisionStore for the given wikiId with all necessary services

Definition at line 122 of file RevisionStoreFactory.php.

Member Data Documentation

◆ $actorMigration

ActorMigration Revision\RevisionStoreFactory::$actorMigration
private

Definition at line 65 of file RevisionStoreFactory.php.

Referenced by Revision\RevisionStoreFactory\__construct().

◆ $blobStoreFactory

BlobStoreFactory Revision\RevisionStoreFactory::$blobStoreFactory
private

Definition at line 54 of file RevisionStoreFactory.php.

Referenced by Revision\RevisionStoreFactory\__construct().

◆ $cache

WANObjectCache Revision\RevisionStoreFactory::$cache
private

Definition at line 58 of file RevisionStoreFactory.php.

Referenced by Revision\RevisionStoreFactory\__construct().

◆ $commentStore

CommentStore Revision\RevisionStoreFactory::$commentStore
private

Definition at line 63 of file RevisionStoreFactory.php.

Referenced by Revision\RevisionStoreFactory\__construct().

◆ $contentHandlerFactory

IContentHandlerFactory Revision\RevisionStoreFactory::$contentHandlerFactory
private

Definition at line 74 of file RevisionStoreFactory.php.

Referenced by Revision\RevisionStoreFactory\__construct().

◆ $dbLoadBalancerFactory

ILBFactory Revision\RevisionStoreFactory::$dbLoadBalancerFactory
private

Definition at line 56 of file RevisionStoreFactory.php.

Referenced by Revision\RevisionStoreFactory\__construct().

◆ $hookContainer

HookContainer Revision\RevisionStoreFactory::$hookContainer
private

Definition at line 77 of file RevisionStoreFactory.php.

Referenced by Revision\RevisionStoreFactory\__construct().

◆ $logger

LoggerInterface Revision\RevisionStoreFactory::$logger
private

Definition at line 60 of file RevisionStoreFactory.php.

Referenced by Revision\RevisionStoreFactory\__construct().

◆ $nameTables

NameTableStoreFactory Revision\RevisionStoreFactory::$nameTables
private

Definition at line 68 of file RevisionStoreFactory.php.

Referenced by Revision\RevisionStoreFactory\__construct().

◆ $slotRoleRegistry

SlotRoleRegistry Revision\RevisionStoreFactory::$slotRoleRegistry
private

Definition at line 71 of file RevisionStoreFactory.php.

Referenced by Revision\RevisionStoreFactory\__construct().


The documentation for this class was generated from the following file: