wiki.techinc.nl/includes/MainConfigNames.template
daniel 6880561a4d Generate config name constants.
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
2022-03-18 10:32:58 +01:00

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}}
}