Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5983291
SettingsIncludeLocator.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
SettingsIncludeLocator.php
View Options
<?php
namespace
MediaWiki\Settings\Source
;
use
MediaWiki\Settings\SettingsBuilderException
;
/**
* Implementations of SettingsSource may additionally implement SettingsIncludeLocator
* as well, to provide support for relative include locations. For instance, a
* SettingsSource that loads a file may provide support for includes to be
* specified relative to the location of that file.
*
* @since 1.38
* @stable to implement
*/
interface
SettingsIncludeLocator
{
/**
* 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.
*
* @param string $location
*
* @return string
* @throws SettingsBuilderException if the given location cannot be used
* as an include by the current source.
*/
public
function
locateInclude
(
string
$location
):
string
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 22:48 (1 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f9/1d/65f24909b5e1d3bc56795eeca9d4
Default Alt Text
SettingsIncludeLocator.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment