MediaWiki REL1_31
|
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. | |
static | logDeprecation ( $msg) |
Log a database deprecation warning. | |
static | setSchemaAliases (LBFactory $lbFactory, Config $config) |
Static Private Attributes | |
static array | $loggedDeprecations = [] |
Cache of already-logged deprecation messages. | |
MediaWiki-specific class for generating database load balancers.
Definition at line 33 of file MWLBFactory.php.
|
static |
array | $lbConf | Config for LBFactory::__construct() |
Config | $mainConfig | Main config object from MediaWikiServices |
ConfiguredReadOnlyMode | $readOnlyMode |
Definition at line 44 of file MWLBFactory.php.
References $services, $wgCommandLineMode, DBO_COMPRESS, DBO_DEBUG, DBO_DEFAULT, DBO_SSL, ConfiguredReadOnlyMode\getReason(), and wfHostname().
|
static |
Returns the LBFactory class to use and the load balancer configuration.
array | $config | (e.g. $wgLBFactoryConf) |
Definition at line 178 of file MWLBFactory.php.
References wfDeprecated().
Referenced by LBFactoryTest\testGetLBFactoryClass().
|
static |
Log a database deprecation warning.
string | $msg | Deprecation message |
Definition at line 239 of file MWLBFactory.php.
References $wgDevelopmentWarnings, and wfDebugLog().
Definition at line 211 of file MWLBFactory.php.
References Config\get().
|
staticprivate |
Cache of already-logged deprecation messages.
Definition at line 36 of file MWLBFactory.php.