23 $this->settingsBuilder = $settingsBuilder;
40 $config = $this->settingsBuilder->getConfig();
51 if ( $wikiName !==
null ) {
55 } elseif ( isset( $_SERVER[
'MW_WIKI_NAME'] ) ) {
60 $site = $_SERVER[
'MW_WIKI_NAME'];
61 } elseif ( isset( $_SERVER[
'WIKI_NAME'] ) ) {
65 $site = $_SERVER[
'WIKI_NAME'];
69 'The WIKI_NAME server variable has been deprecated since 1.39, ' .
70 'use MW_WIKI_NAME instead.'
78 $path =
"$farmDir/$site.$farmExt";
79 if ( $this->settingsBuilder->fileExists(
$path ) ) {
80 $this->settingsBuilder->loadFile(
$path );
90 return defined(
'MW_WIKI_NAME' ) ? MW_WIKI_NAME :
null;
A class containing constants representing the names of configuration variables.
const WikiFarmSettingsExtension
Name constant for the WikiFarmSettingsExtension setting, for use with Config::get()
const WikiFarmSettingsDirectory
Name constant for the WikiFarmSettingsDirectory setting, for use with Config::get()