MediaWiki REL1_39
MediaWiki\Settings\LocalSettingsLoader Class Reference

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.
 

Detailed Description

Utility for loading LocalSettings files.

Since
1.38

Definition at line 12 of file LocalSettingsLoader.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Settings\LocalSettingsLoader::__construct ( SettingsBuilder $settingsBuilder,
string $baseDir )
Parameters
SettingsBuilder$settingsBuilder
string$baseDir

Definition at line 24 of file LocalSettingsLoader.php.

Member Function Documentation

◆ loadLocalSettingsFile()

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.

Warning
This does not support setting configuration variables that use a prefix other than "wg"!
Parameters
string$file

Definition at line 40 of file LocalSettingsLoader.php.

References $file, $IP, $wgCommandLineMode, and $wgSettings.


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