CachedSource is newable and stable to call while the other interfaces are now stable to implement. Change-Id: Ifcb4865691cb7ec308acac2bd3f367b14424a0e1
25 lines
621 B
PHP
25 lines
621 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Settings\Source;
|
|
|
|
use MediaWiki\Settings\SettingsBuilderException;
|
|
use Stringable;
|
|
|
|
/**
|
|
* A SettingsSource is meant to represent any kind of local or remote store
|
|
* from which settings can be read, be it a local file, remote URL, database,
|
|
* etc. It is concerned with reading (and possibly decoding) settings data.
|
|
*
|
|
* @since 1.38
|
|
* @stable to implement
|
|
*/
|
|
interface SettingsSource extends Stringable {
|
|
/**
|
|
* Loads and returns all settings from this source as an associative
|
|
* array.
|
|
*
|
|
* @return array
|
|
* @throws SettingsBuilderException
|
|
*/
|
|
public function load(): array;
|
|
}
|