MediaWiki 1.42.0
|
Settings loaded from a PHP file path as an array structure. More...
Inherits MediaWiki\Settings\Source\SettingsSource, and MediaWiki\Settings\Source\SettingsIncludeLocator.
Public Member Functions | |
__construct (string $path) | |
__toString () | |
Returns this file source as a string. | |
load () | |
Loads an array structure from a PHP file and return for using with merge strategies to apply on configs. | |
locateInclude (string $location) | |
This method defines how a relative reference to the location of another settings source is interpreted. | |
Settings loaded from a PHP file path as an array structure.
Definition at line 13 of file PhpSettingsSource.php.
MediaWiki\Settings\Source\PhpSettingsSource::__construct | ( | string | $path | ) |
MediaWiki\Settings\Source\PhpSettingsSource::__toString | ( | ) |
Returns this file source as a string.
Definition at line 81 of file PhpSettingsSource.php.
MediaWiki\Settings\Source\PhpSettingsSource::load | ( | ) |
Loads an array structure from a PHP file and return for using with merge strategies to apply on configs.
SettingsBuilderException |
Implements MediaWiki\Settings\Source\SettingsSource.
Definition at line 34 of file PhpSettingsSource.php.
References $path.
MediaWiki\Settings\Source\PhpSettingsSource::locateInclude | ( | string | $location | ) |
This method defines how a relative reference to the location of another settings source is interpreted.
It tries to make $location absolute by interpreting it as relative to the location of the SettingsSource it originates from.
Implementation are "best effort". If a location cannot be made absolute, it may be returned as-is. Implementations are also free to throw a SettingsBuilderException to indicate that the given include location is not supported in this context.
string | $location |
SettingsBuilderException | if the given location cannot be used as an include by the current source. |
Implements MediaWiki\Settings\Source\SettingsIncludeLocator.
Definition at line 85 of file PhpSettingsSource.php.