MediaWiki master
MediaWiki\Settings\Source\SettingsFileUtils Class Reference

A collection of static utility methods for use with settings files. More...

Static Public Member Functions

static resolveRelativeLocation (string $path, string $base)
 Resolves a relative settings source location.
 

Detailed Description

A collection of static utility methods for use with settings files.

Since
1.38
Access: internal
since the behavior may change to accommodate more types of source locations.

Definition at line 12 of file SettingsFileUtils.php.

Member Function Documentation

◆ resolveRelativeLocation()

static MediaWiki\Settings\Source\SettingsFileUtils::resolveRelativeLocation ( string $path,
string $base )
static

Resolves a relative settings source location.

This method will attempt to interpret $path as relative to $base if possible. This behaves similar to relative URLs are made absolute using a base URL.

The current implementation is based on file paths, but this may be expanded in the future to support other kinds of locations.

Parameters
string$path
string$base
Returns
string

Definition at line 27 of file SettingsFileUtils.php.

References $path.


The documentation for this class was generated from the following file: