MediaWiki REL1_40
SettingsFormat.php
Go to the documentation of this file.
1<?php
2
4
5use Stringable;
6use UnexpectedValueException;
7
15interface SettingsFormat extends Stringable {
24 public function decode( string $data ): array;
25
34 public static function supportsFileExtension( string $ext ): bool;
35}
A SettingsFormat is meant to detect supported file types and/or decode source contents into settings ...
decode(string $data)
Decodes the given settings data and returns an associative array.
static supportsFileExtension(string $ext)
Whether or not the format claims to support a file with the given extension.
if(!is_readable( $file)) $ext
Definition router.php:48