Jump to content

Manual:getConfiguration.php

From mediawiki.org
MediaWiki version:
1.23

Details

[edit]

getConfiguration.php file is a maintenance script to print serialized output of MediaWiki config variables.

Options

[edit]
Option Description Required Default
--regex Regex to filter variables with Optional
--iregex Same as --regex but case insensitive Optional
--settings Space-separated list of wg* variables Optional
--format Output format, either json, php, serialize, or vardump Optional php

Usage

[edit]
php maintenance/getConfiguration.php [ --regex| --iregex| --settings| --format ]

With settings

[edit]
Terminal

With regex

[edit]
Terminal
Use JSON_PARTIAL_OUTPUT_ON_ERROR (--json-partial-output-on-error) flag with json_encode(). This allows for partial response to be output in case of an exception while serializing to JSON. If an error occurs, the wgGetConfigurationJsonErrorOccurred field is set in the output.
Terminal

See also

[edit]