Inherits Stringable, and MediaWiki\Settings\Source\Format\SettingsFormat.
|
| | __construct (array $useParsers=[self::PARSER_PHP_YAML, self::PARSER_SYMFONY]) |
| |
| | __toString () |
| |
| | decode (string $data) |
| | Decodes the given settings data and returns an associative array.
|
| |
|
| static | isParserAvailable (string $parser) |
| | Check whether a specific YAML parser is available.
|
| |
| static | supportsFileExtension (string $ext) |
| | Whether or not the format claims to support a file with the given extension.
|
| |
Definition at line 13 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 25 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 44 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: