MediaWiki REL1_39
|
Utility for loading LocalSettings files. More...
Public Member Functions | |
__construct (SettingsBuilder $settingsBuilder, string $baseDir) | |
loadLocalSettingsFile (string $file) | |
Loads a settings file into the SettingsBuilder provided to the constructor. | |
Utility for loading LocalSettings files.
Definition at line 12 of file LocalSettingsLoader.php.
MediaWiki\Settings\LocalSettingsLoader::__construct | ( | SettingsBuilder | $settingsBuilder, |
string | $baseDir ) |
SettingsBuilder | $settingsBuilder | |
string | $baseDir |
Definition at line 24 of file LocalSettingsLoader.php.
MediaWiki\Settings\LocalSettingsLoader::loadLocalSettingsFile | ( | string | $file | ) |
Loads a settings file into the SettingsBuilder provided to the constructor.
This supports JSON and YAML files, PHP files that return a settings array, as well as traditional LocalSettings.php files that set variables, for backwards compatibility.
string | $file |
Definition at line 40 of file LocalSettingsLoader.php.
References $file, $IP, $wgCommandLineMode, and $wgSettings.