MediaWiki
1.30.0
|
MediaWiki-specific class for generating database load balancers. More...
Static Public Member Functions | |
static | applyDefaultConfig (array $lbConf, Config $mainConfig, ConfiguredReadOnlyMode $readOnlyMode) |
static | getLBFactoryClass (array $config) |
Returns the LBFactory class to use and the load balancer configuration. More... | |
MediaWiki-specific class for generating database load balancers.
Definition at line 32 of file MWLBFactory.php.
|
static |
array | $lbConf | Config for LBFactory::__construct() |
Config | $mainConfig | Main config object from MediaWikiServices |
ConfiguredReadOnlyMode | $readOnlyMode |
Definition at line 39 of file MWLBFactory.php.
References $flags, $wgCommandLineMode, as, class, DBO_COMPRESS, DBO_DEBUG, DBO_DEFAULT, DBO_SSL, ObjectCache\getLocalClusterInstance(), ConfiguredReadOnlyMode\getReason(), global, Profiler\instance(), and wfHostname().
|
static |
Returns the LBFactory class to use and the load balancer configuration.
array | $config | (e.g. $wgLBFactoryConf) |
Definition at line 170 of file MWLBFactory.php.
References class, and wfDeprecated().
Referenced by LBFactoryTest\testGetLBFactoryClass().