Merge "doc: SpanInterface: more dev-friendly comments"
[mediawiki.git] / includes / DefaultSettings.php
blob2bb9bec5fd6ab9c4ad7408694d11cf805445de46
1 <?php
2 /**
3 * THIS IS A DEPRECATED STUB FILE!
5 * Default settings are now defined in the MainConfigSchema class.
7 * To get default values for configuration variables, use MainConfigSchema::listDefaultValues()
8 * or MainConfigSchema::getDefaultValue().
10 * @file
11 * @deprecated since 1.39
14 use MediaWiki\MainConfigSchema;
16 if ( function_exists( 'wfDeprecatedMsg' ) ) {
17 wfDeprecatedMsg(
18 'DefaultSettings.php is deprecated and will be removed. '
19 . 'Use MainConfigSchema::listDefaultValues() or MainConfigSchema::getDefaultValue() instead.',
20 '1.39'
24 // Extract the defaults into the current scope
25 foreach ( MainConfigSchema::listDefaultValues( 'wg' ) as $defaultSettingsVar => $defaultSettingsValue ) {
26 $$defaultSettingsVar = $defaultSettingsValue;
29 unset( $defaultSettingsVar );
30 unset( $defaultSettingsValue );