MediaWiki REL1_34
MediaWiki\Revision\RevisionStoreFactory Class Reference

Factory service for RevisionStore instances. More...

Collaboration diagram for MediaWiki\Revision\RevisionStoreFactory:

Public Member Functions

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

Private Attributes

ActorMigration $actorMigration
 
BlobStoreFactory $blobStoreFactory
 
WANObjectCache $cache
 
CommentStore $commentStore
 
bool $contentHandlerUseDB
 
ILBFactory $dbLoadBalancerFactory
 
LoggerInterface $logger
 
int $mcrMigrationStage
 One of the MIGRATION_* constants.
 
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 49 of file RevisionStoreFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Revision\RevisionStoreFactory::__construct ( ILBFactory  $dbLoadBalancerFactory,
BlobStoreFactory  $blobStoreFactory,
NameTableStoreFactory  $nameTables,
SlotRoleRegistry  $slotRoleRegistry,
WANObjectCache  $cache,
CommentStore  $commentStore,
ActorMigration  $actorMigration,
  $migrationStage,
LoggerInterface  $logger,
  $contentHandlerUseDB 
)
Parameters
ILBFactory$dbLoadBalancerFactory
BlobStoreFactory$blobStoreFactory
NameTableStoreFactory$nameTables
SlotRoleRegistry$slotRoleRegistry
WANObjectCache$cache
CommentStore$commentStore
ActorMigration$actorMigration
int$migrationStage
LoggerInterface$logger
bool$contentHandlerUseDBsee $wgContentHandlerUseDB. Must be the same for all wikis in the cluster. Will go away after MCR migration.

Definition at line 91 of file RevisionStoreFactory.php.

References MediaWiki\Revision\RevisionStoreFactory\$actorMigration, MediaWiki\Revision\RevisionStoreFactory\$blobStoreFactory, MediaWiki\Revision\RevisionStoreFactory\$cache, MediaWiki\Revision\RevisionStoreFactory\$commentStore, MediaWiki\Revision\RevisionStoreFactory\$contentHandlerUseDB, MediaWiki\Revision\RevisionStoreFactory\$dbLoadBalancerFactory, MediaWiki\Revision\RevisionStoreFactory\$logger, MediaWiki\Revision\RevisionStoreFactory\$nameTables, and MediaWiki\Revision\RevisionStoreFactory\$slotRoleRegistry.

Member Function Documentation

◆ getRevisionStore()

MediaWiki\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 123 of file RevisionStoreFactory.php.

Member Data Documentation

◆ $actorMigration

ActorMigration MediaWiki\Revision\RevisionStoreFactory::$actorMigration
private

◆ $blobStoreFactory

BlobStoreFactory MediaWiki\Revision\RevisionStoreFactory::$blobStoreFactory
private

◆ $cache

WANObjectCache MediaWiki\Revision\RevisionStoreFactory::$cache
private

◆ $commentStore

CommentStore MediaWiki\Revision\RevisionStoreFactory::$commentStore
private

◆ $contentHandlerUseDB

bool MediaWiki\Revision\RevisionStoreFactory::$contentHandlerUseDB
private

◆ $dbLoadBalancerFactory

ILBFactory MediaWiki\Revision\RevisionStoreFactory::$dbLoadBalancerFactory
private

◆ $logger

LoggerInterface MediaWiki\Revision\RevisionStoreFactory::$logger
private

◆ $mcrMigrationStage

int MediaWiki\Revision\RevisionStoreFactory::$mcrMigrationStage
private

One of the MIGRATION_* constants.

Definition at line 65 of file RevisionStoreFactory.php.

◆ $nameTables

NameTableStoreFactory MediaWiki\Revision\RevisionStoreFactory::$nameTables
private

◆ $slotRoleRegistry

SlotRoleRegistry MediaWiki\Revision\RevisionStoreFactory::$slotRoleRegistry
private

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