Manual:generateConfigNames.php
MediaWiki version: | ≥ 1.39 |
MediaWiki file: generateConfigNames.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.43.0 • 1.42.4 • 1.39.11 |
Classes: | GenerateConfigNames |
Details
editgenerateConfigNames.php is a maintenance script to generates a PHP MainConfigNames
class containing constants for all variables defined in the config-schema.yaml
file.
Options/Arguments
editOption | Description | Default | Required? |
---|---|---|---|
--output | Path to output. | $IP/includes/MainConfigNames.php |
Optional |
Usage
editphp maintenance/run.php generateConfigNames [ --output ]
Terminal
$ php maintenance/run.php generateConfigNames --output Sample-Config.php
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.