MediaWiki master
MediaWiki\DB\MWLBConfig Class Reference

MediaWiki-specific class for generating configuration of load balancers. More...

Public Member Functions

 __construct (ServiceOptions $options, array $virtualDomains, array $lbConf)
 
 getConfig ()
 

Public Attributes

const APPLY_DEFAULT_CONFIG_OPTIONS
 
const CORE_VIRTUAL_DOMAINS
 

Detailed Description

MediaWiki-specific class for generating configuration of load balancers.

Access: internal
For use by core ServiceWiring only.

Definition at line 28 of file MWLBConfig.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\DB\MWLBConfig::__construct ( ServiceOptions $options,
array $virtualDomains,
array $lbConf )
Parameters
ServiceOptions$options
string[]$virtualDomains
array$lbConf

Definition at line 74 of file MWLBConfig.php.

Member Function Documentation

◆ getConfig()

MediaWiki\DB\MWLBConfig::getConfig ( )
Returns
array the LBFactory config

Definition at line 165 of file MWLBConfig.php.

Member Data Documentation

◆ APPLY_DEFAULT_CONFIG_OPTIONS

const MediaWiki\DB\MWLBConfig::APPLY_DEFAULT_CONFIG_OPTIONS
Initial value:
= [
]
const SQLMode
Name constant for the SQLMode setting, for use with Config::get()
const DBtype
Name constant for the DBtype setting, for use with Config::get()
const DBname
Name constant for the DBname setting, for use with Config::get()
const DBprefix
Name constant for the DBprefix setting, for use with Config::get()
const DBssl
Name constant for the DBssl setting, for use with Config::get()
const DBserver
Name constant for the DBserver setting, for use with Config::get()
const ExternalServers
Name constant for the ExternalServers setting, for use with Config::get()
const DebugToolbar
Name constant for the DebugToolbar setting, for use with Config::get()
const DBmwschema
Name constant for the DBmwschema setting, for use with Config::get()
const DBport
Name constant for the DBport setting, for use with Config::get()
const SQLiteDataDir
Name constant for the SQLiteDataDir setting, for use with Config::get()
const DebugDumpSql
Name constant for the DebugDumpSql setting, for use with Config::get()
const DBpassword
Name constant for the DBpassword setting, for use with Config::get()
const DBcompress
Name constant for the DBcompress setting, for use with Config::get()
const DebugLogFile
Name constant for the DebugLogFile setting, for use with Config::get()
const DBStrictWarnings
Name constant for the DBStrictWarnings setting, for use with Config::get()
const VirtualDomainsMapping
Name constant for the VirtualDomainsMapping setting, for use with Config::get()
const DBservers
Name constant for the DBservers setting, for use with Config::get()
const DBuser
Name constant for the DBuser setting, for use with Config::get()
Access: internal
For use by ServiceWiring

Definition at line 41 of file MWLBConfig.php.

◆ CORE_VIRTUAL_DOMAINS

const MediaWiki\DB\MWLBConfig::CORE_VIRTUAL_DOMAINS
Initial value:
= [
'virtual-botpasswords',
'virtual-interwiki',
'virtual-interwiki-interlanguage',
]

Definition at line 31 of file MWLBConfig.php.


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