MediaWiki
1.28.0
|
This does the initial set up for a web request. More...
Go to the source code of this file.
Variables | |
$IP = getenv( 'MW_INSTALL_PATH' ) | |
$wgProfiler = [] | |
float | $wgRequestTime = $_SERVER['REQUEST_TIME_FLOAT'] |
Request start time as fractional seconds since epoch. More... | |
if(is_readable("$IP/vendor/autoload.php")) if(!interface_exists( 'Psr\Log\LoggerInterface')) if(defined( 'MW_CONFIG_CALLBACK')) | else |
if ($IP===false) | |
const | MEDIAWIKI true |
This does the initial set up for a web request.
It does some security checks, starts the profiler and loads the configuration, and optionally loads Setup.php depending on whether MW_NO_SETUP is defined.
Setup.php (if loaded) then sets up GlobalFunctions, the AutoLoader, and the configuration globals.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html
Definition in file WebStart.php.
$IP = getenv( 'MW_INSTALL_PATH' ) |
Definition at line 58 of file WebStart.php.
Referenced by TidySupport\__construct(), GenerateCommonPassword\__construct(), CommandLineInstaller\__construct(), ParserTestTopLevelSuite\__construct(), Maintenance\__construct(), ResourceLoader\__construct(), CheckSyntax\addPath(), ApiQuerySiteinfo\appendGeneralInfo(), ApiQuerySiteinfo\appendInstalledLibraries(), AutoLoader\autoload(), CheckSyntax\buildFileList(), AutoLoaderTest\checkAutoLoadConf(), MysqlUpdater\doInterwikiUpdate(), Installer\envCheckUploadsDirectory(), Installer\envPrepPath(), CheckComposerLockUpToDate\execute(), HHVMMakeRepo\execute(), CheckLess\execute(), DateFormats\execute(), UploadDumper\execute(), GenerateNormalizerDataMl\execute(), CleanupSpam\execute(), GenerateNormalizerDataAr\execute(), MwSql\execute(), GenerateJsonI18n\execute(), SpecialVersion\execute(), FindHooks\execute(), PHPUnitMaintClass\execute(), CommandLineInstaller\execute(), MWDocGen\execute(), FindDeprecated\execute(), ResourceLoaderModule\expandRelativePaths(), ResourceLoaderFileModule\extractBasePaths(), ResourceLoaderImageModule\extractLocalBasePath(), GenerateCollationData\generateFirstChars(), GitInfo\getCacheFilePath(), SiteConfiguration\getConfig(), SpecialVersion\getCreditsForExtension(), ResourceLoaderSpecialCharacterDataModule\getData(), ResourceLoaderStartUpModule\getDefinitionSummary(), Installer\getExistingLocalSettings(), SpecialVersion\getExternalLibraries(), FindDeprecated\getFiles(), Language\getJsonMessagesFileName(), LocalisationCache\getMessagesDirs(), Language\getMessagesFileName(), LocalisationCacheTest\getMockLocalisationCache(), ApiBase\getModuleSourceInfo(), InstallerOverrides\getOverrides(), ResourceLoaderModule\getRelativePaths(), ResourceLoaderStartUpModule\getScript(), SkinFallbackTemplate\getSnippetForSkin(), DatabaseInstaller\getSqlFilePath(), SpecialVersion\getVersion(), SpecialVersion\getVersionLinkedGit(), File\iconThumb(), Installer\includeExtensions(), MWDocGen\init(), LocalisationCache\loadPluralFiles(), Maintenance\loadSettings(), TextPassDumper\openSpawn(), DatabaseUpdater\patchPath(), DatabaseInstaller\populateInterwikiTable(), DatabaseSqliteTest\prepareTestDB(), TextPassDumper\processOptions(), MergeMessageFileList\readFile(), LocalisationCache\readSourceFilesAndRegisterDeps(), ResourceLoader\registerTestModules(), GitInfo\repo(), MimeMagicTest\setUp(), ComposerLockTest\setUp(), ComposerJsonTest\setUp(), UploadFromUrlTestSuite\setUp(), Maintenance\setup(), SqliteInstaller\setupSearchIndex(), ParserTestRunner\setupUploadBackend(), UploadFromUrlTestSuite\setupUploadDir(), OracleInstaller\setupUser(), DatabaseSqliteTest\testEntireSchema(), FileBackendTest\testGetContentType(), ExtensionProcessorTest\testGlobalSettingsDocumentedInSchema(), StoreBatchTest\teststore(), DatabaseTest\testStoredFunctions(), DatabaseSqliteTest\testUpgrades(), GitInfoTest\testValidJsonData(), and OutputPage\transformResourcePath().
$wgProfiler = [] |
Definition at line 73 of file WebStart.php.
Referenced by Maintenance\activateProfiler(), DatabaseUpdater\doEnableProfiling(), Profiler\instance(), and DatabaseSqliteTest\testUpgrades().
float $wgRequestTime = $_SERVER['REQUEST_TIME_FLOAT'] |
Request start time as fractional seconds since epoch.
Definition at line 43 of file WebStart.php.
Referenced by RebuildFileCache\execute(), MWDebug\getDebugInfo(), and Maintenance\setup().
if (is_readable("$IP/vendor/autoload.php")) if (!interface_exists( 'Psr\Log\LoggerInterface')) if (defined( 'MW_CONFIG_CALLBACK')) else |
Definition at line 110 of file WebStart.php.
if |
Definition at line 59 of file WebStart.php.
Referenced by TitleValue\__toString(), ApiQueryAllUsers\execute(), ApiQueryContributions\extractRowInfo(), DatabaseLogEntry\getPerformer(), RCDatabaseLogEntry\getPerformer(), JSMinPlus\parseTree(), and ApiQueryRecentChanges\run().
const MEDIAWIKI true |
Definition at line 52 of file WebStart.php.