Manual:GetConfiguration.php/pt-br

Versão do MediaWiki:
1.23
Category:MediaWiki code/pt-br#GetConfiguration.php

Detalhes

O arquivo getConfiguration.php é um script de manutenção que imprime saídas serializadas de variáveis de configuração do MediaWiki.

Options

Option Description Required Default
--regexRegular expression to filter variables withOptional
--iregexSame as --regex but case insensitiveOptional
--settingsSpace-separated list of wg* variablesOptional
--formatOutput format. Either json, php, serialize or vardump.Optionalphp

Usage

php maintenance/run.php getConfiguration [ --regex regex | --iregex regex | --settings list ] [ --format format ]
No MediaWiki versão 1.39.13 e anteriores, você deve invocar os scripts de manutenção usando $2 em vez de $3.

With --settings

Terminal

With --regex

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

Category:Maintenance scripts/pt-br Category:Development maintenance scripts/pt-br
Category:Development maintenance scripts/pt-br Category:Maintenance scripts/pt-br Category:MediaWiki code/pt-br