We can generate a class that contains constants for all config variable names. This removes the need to rely on string literals when calling Config::get, and it provides a place for documentation that integrates better with IDEs than the markdown file. Change-Id: I817dc14c4ce8fc0a29d9c07e8fd393c4f359cade
27 lines
863 B
Text
27 lines
863 B
Text
<?php
|
|
/**
|
|
* This file is automatically generated using maintenance/generateConfigNames.php.
|
|
* See maintenance/generateConfigNames.php for instructions.
|
|
* The template for this file itself is MainConfigNames.template
|
|
* @file
|
|
* @ingroup Config
|
|
*/
|
|
|
|
// phpcs:disable Generic.NamingConventions.UpperCaseConstantName.ClassConstantNotUpperCase
|
|
// phpcs:disable Generic.Files.LineLength.TooLong
|
|
namespace MediaWiki;
|
|
|
|
/**
|
|
* A class containing constants representing the names of configuration variables.
|
|
* These constants can be used in calls to Config::get() or with ServiceOptions,
|
|
* to protect against typos and to make it easier to discover documentation about
|
|
* the respective config setting.
|
|
*
|
|
* @note this class is generated automatically by maintenance/generateConfigNames.php
|
|
* @since 1.38
|
|
*/
|
|
class MainConfigNames {
|
|
|
|
{{AUTO-GENERATED-SECTION}}
|
|
|
|
}
|