|
| __construct (array $useParsers=[self::PARSER_PHP_YAML, self::PARSER_SYMFONY]) |
|
| __toString () |
|
| decode (string $data) |
| Decodes the given settings data and returns an associative array. More...
|
|
Definition at line 11 of file YamlFormat.php.
◆ __construct()
MediaWiki\Settings\Source\Format\YamlFormat::__construct |
( |
array |
$useParsers = [ self::PARSER_PHP_YAML , |
|
|
self::PARSER_SYMFONY] |
|
|
) |
| |
- Parameters
-
string[] | $useParsers | which parsers to try in order. |
Definition at line 23 of file YamlFormat.php.
◆ __toString()
MediaWiki\Settings\Source\Format\YamlFormat::__toString |
( |
| ) |
|
◆ decode()
MediaWiki\Settings\Source\Format\YamlFormat::decode |
( |
string |
$data | ) |
|
◆ isParserAvailable()
static MediaWiki\Settings\Source\Format\YamlFormat::isParserAvailable |
( |
string |
$parser | ) |
|
|
static |
Check whether a specific YAML parser is available.
- Parameters
-
string | $parser | one of the PARSER_* constants. |
- Returns
- bool
Definition at line 42 of file YamlFormat.php.
◆ supportsFileExtension()
static MediaWiki\Settings\Source\Format\YamlFormat::supportsFileExtension |
( |
string |
$ext | ) |
|
|
static |
◆ PARSER_PHP_YAML
const MediaWiki\Settings\Source\Format\YamlFormat::PARSER_PHP_YAML = 'php-yaml' |
◆ PARSER_SYMFONY
const MediaWiki\Settings\Source\Format\YamlFormat::PARSER_SYMFONY = 'symfony' |
The documentation for this class was generated from the following file: