MediaWiki  1.34.0
MediaWiki\FileBackend\LockManager\LockManagerGroupFactory Class Reference

Service to construct LockManagerGroups. More...

Collaboration diagram for MediaWiki\FileBackend\LockManager\LockManagerGroupFactory:

Public Member Functions

 __construct ( $defaultDomain, array $lockManagerConfigs, LBFactory $lbFactory)
 Do not call directly, use MediaWikiServices. More...
 
 getLockManagerGroup ( $domain=false)
 

Private Attributes

string $defaultDomain
 
LockManagerGroup[] $instances = []
 (domain => LockManagerGroup) More...
 
LBFactory $lbFactory
 
array $lockManagerConfigs
 

Detailed Description

Service to construct LockManagerGroups.

Definition at line 11 of file LockManagerGroupFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\FileBackend\LockManager\LockManagerGroupFactory::__construct (   $defaultDomain,
array  $lockManagerConfigs,
LBFactory  $lbFactory 
)

Do not call directly, use MediaWikiServices.

Parameters
string$defaultDomain
array$lockManagerConfigsIn format of $wgLockManagers
LBFactory$lbFactory

Definition at line 31 of file LockManagerGroupFactory.php.

References MediaWiki\FileBackend\LockManager\LockManagerGroupFactory\$defaultDomain, MediaWiki\FileBackend\LockManager\LockManagerGroupFactory\$lbFactory, and MediaWiki\FileBackend\LockManager\LockManagerGroupFactory\$lockManagerConfigs.

Member Function Documentation

◆ getLockManagerGroup()

MediaWiki\FileBackend\LockManager\LockManagerGroupFactory::getLockManagerGroup (   $domain = false)
Parameters
string | null | false$domainDomain (usually wiki ID). false for the default (normally the current wiki's domain).
Returns
LockManagerGroup

Definition at line 42 of file LockManagerGroupFactory.php.

References MediaWiki\FileBackend\LockManager\LockManagerGroupFactory\$defaultDomain.

Member Data Documentation

◆ $defaultDomain

string MediaWiki\FileBackend\LockManager\LockManagerGroupFactory::$defaultDomain
private

◆ $instances

LockManagerGroup [] MediaWiki\FileBackend\LockManager\LockManagerGroupFactory::$instances = []
private

(domain => LockManagerGroup)

Definition at line 22 of file LockManagerGroupFactory.php.

◆ $lbFactory

LBFactory MediaWiki\FileBackend\LockManager\LockManagerGroupFactory::$lbFactory
private

◆ $lockManagerConfigs

array MediaWiki\FileBackend\LockManager\LockManagerGroupFactory::$lockManagerConfigs
private

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