MediaWiki REL1_27
load.php File Reference

This file is the entry point for ResourceLoader. More...

Go to the source code of this file.

Variables

 $context = new ResourceLoaderContext( $resourceLoader, $wgRequest )
 
 $mediawiki = new MediaWiki()
 
if(! $wgRequest->checkUrlExtension()) $resourceLoader
 
const MW_NO_SESSION 'warn'
 

Detailed Description

This file is the entry point for ResourceLoader.

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

Author
Roan Kattouw
Trevor Parscal

Definition in file load.php.

Variable Documentation

◆ $context

$context = new ResourceLoaderContext( $resourceLoader, $wgRequest )

Definition at line 44 of file load.php.

Referenced by MediaWiki\__construct(), LogPage\addEntry(), MWDebug\appendDebugInfoToApiResult(), SpecialRecentchangesTest\assertConditions(), braceSubstitution(), ResourceLoaderModule\buildContent(), ProtectionForm\buildForm(), DummyLinker\buildRollbackLink(), Linker\buildRollbackLink(), SpecialPageFactory\capturePath(), ResourceLoaderFileModule\compileLessFile(), ResourceLoaderUserTokensModule\contextUserTokens(), ContentHandler\createDifferenceEngine(), RevisionDeleter\createList(), ApiPageSetTest\createPageSetWithRedirect(), Preferences\datetimePreferences(), MWDebug\debugMsg(), Article\delete(), MediaWiki\Logger\LegacyLogger\destination(), ApiTestCase\doApiRequest(), Article\doDelete(), HttpError\doLog(), ActionTest\dummyActionCallback(), Preferences\editingPreferences(), ApiFormatTestBase\encodeData(), SpecialBlockList\execute(), SpecialEmailUser\execute(), PhpHttpRequest\execute(), RebuildFileCache\execute(), SpecialPageFactory\executePath(), SpecialPageExecutor\executeSpecialPage(), DBConnectionError\fileCachedPage(), Preferences\filesPreferences(), MediaWiki\Logger\LegacyLogger\format(), DiffFormatter\format(), MediaWiki\Logger\LegacyLogger\formatAsWfDebug(), FeedUtils\formatDiffRow(), File\formatMetadata(), ExifBitmapHandler\formatMetadata(), GIFHandler\formatMetadata(), PNGHandler\formatMetadata(), MediaHandler\formatMetadataHelper(), ChangeTags\formatSummaryRow(), DummyLinker\generateRollback(), Linker\generateRollback(), Preferences\generateSkinOptions(), ResourceLoaderStartUpModule\getAllModuleHashes(), AuthManagerSpecialPage\getAuthForm(), LoginSignupSpecialPage\getAuthForm(), CacheHelper\getCachedNotice(), SpecialEditWatchlist\getClearForm(), ResourceLoader\getCombinedVersion(), ResourceLoaderStartUpModule\getConfigSettings(), ActionTest\getContext(), OldChangesListTest\getContext(), RCCacheEntryFactoryTest\getContext(), ResourceLoaderLanguageDataModule\getData(), ResourceLoaderLanguageNamesModule\getData(), Preferences\getDateOptions(), MWDebug\getDebugHTML(), MWDebug\getDebugInfo(), ResourceLoaderFileModule\getDefinitionSummary(), ResourceLoaderImageModule\getDefinitionSummary(), ResourceLoaderStartUpModule\getDefinitionSummary(), ResourceLoaderWikiModule\getDefinitionSummary(), ResourceLoaderForeignApiModule\getDependencies(), ResourceLoaderModule\getFileDependencies(), ResourceLoaderFileModule\getFileHashes(), MWDebug\getFilesIncluded(), ResourceLoaderFileModule\getFlip(), ResourceLoaderModule\getFlip(), FormSpecialPage\getForm(), Preferences\getFormObject(), ResourceLoaderImageModule\getGlobalVariants(), ResourceLoaderImage\getImageData(), ResourceLoaderImageModule\getImages(), Preferences\getImageSizes(), DummyLinker\getInvalidTitleDescription(), Linker\getInvalidTitleDescription(), ResourceLoaderEditToolbarModule\getLessVars(), ApiContinuationManagerTest\getManager(), ResourceLoaderModule\getMessageBlob(), ResourceLoaderSkinModule\getModifiedHash(), ResourceLoaderImageModule\getModifiedTime(), ResourceLoaderModule\getModuleContent(), ResourceLoaderStartUpModule\getModuleRegistrations(), SpecialEditWatchlist\getNormalForm(), OldChangesListTest\getOldChangesList(), User\getOptionKinds(), ResourceLoaderSiteModule\getPages(), ResourceLoaderUserGroupsModule\getPages(), ResourceLoaderUserModule\getPages(), ResourceLoaderImage\getPath(), Block\getPermissionsError(), Preferences\getPreferences(), SpecialEditWatchlist\getRawForm(), ManualLogEntry\getRecentChange(), ResourceLoaderJqueryMsgModule\getScript(), ResourceLoaderLanguageDataModule\getScript(), ResourceLoaderLanguageNamesModule\getScript(), ResourceLoaderRawFileModule\getScript(), ResourceLoaderStartUpModule\getScript(), ResourceLoaderUploadDialogModule\getScript(), ResourceLoaderUserOptionsModule\getScript(), ResourceLoaderFileModule\getScriptFiles(), ResourceLoaderJqueryMsgModule\getScriptURLsForDebug(), ResourceLoaderModule\getScriptURLsForDebug(), ResourceLoaderStartUpModule\getStartupModulesUrl(), ResourceLoaderFileModule\getStyleFiles(), ResourceLoaderFileModule\getStyles(), ResourceLoaderImageModule\getStyles(), ResourceLoaderSkinModule\getStyles(), ResourceLoaderFileModule\getStyleURLsForDebug(), ResourceLoaderModule\getStyleURLsForDebug(), TestRecentChangesHelper\getTestContext(), Preferences\getThumbSizes(), Preferences\getTimezoneOptions(), SpecialUpload\getUploadForm(), ResourceLoaderImage\getUrl(), ResourceLoaderModule\getVersionHash(), RequestContext\importScopedSession(), MediaWiki\Logger\LegacyLogger\interpolate(), WikitextContent\isCountable(), HTMLFileCache\loadFromFileCache(), Preferences\loadPreferenceValues(), MediaWiki\Logger\LegacyLogger\log(), MediaWiki\Auth\Throttler\logRejection(), ChangesListSpecialPage\makeLegend(), ResourceLoader\makeModuleResponse(), ContentHandler\makeParserOptions(), Article\makeParserOptions(), WikiPage\makeParserOptions(), SpecialPageExecutor\newContext(), EnhancedChangesListTest\newEnhancedChangesList(), RequestContext\newExtraneousContext(), ParserOptions\newFromContext(), ResourceFileCache\newFromContext(), Article\newFromTitle(), Article\newFromWikiPage(), ApiTestContext\newTestContext(), ResourceLoader\preloadModuleInfo(), MediaWiki\preOutputCommit(), SpecialTags\processCreateTagForm(), SpecialBlock\processForm(), SpecialTags\processTagForm(), Preferences\profilePreferences(), Preferences\rcPreferences(), ResourceLoaderFileModule\readStyleFile(), ResourceLoaderFileModule\readStyleFiles(), Preferences\renderingPreferences(), UserNotLoggedIn\report(), LoadBalancer\reportConnectionError(), User\resetOptions(), ResourceLoader\respond(), AssembleUploadChunksJob\run(), PublishStashedFileJob\run(), ParserTest\runTest(), ResourceLoaderModule\saveFileDependencies(), ResourceLoaderImage\sendResponseHeaders(), ResourceLoader\sendResponseHeaders(), Article\setContext(), SpecialPage\setContext(), Message\setContext(), SpecialPageExecutor\setEditTokenFromUser(), ResourceLoaderModule\setFileDependencies(), Article\setOldSubtitle(), LoginSignupSpecialPage\setSessionUserForCurrentRequest(), ParserTest\setUp(), ActionTest\setUp(), SpecialMIMESearchTest\setUp(), UploadFromUrlTestSuite\setUp(), ParserTest\setupGlobals(), NewParserTest\setupGlobals(), MediaWiki\Logger\LegacyLogger\shouldEmit(), Article\showRedirectedFromHeader(), SpecialPreferences\showResetForm(), SpecialUploadStash\showUploads(), Preferences\skinPreferences(), SpecialEmailUser\submit(), ActionTest\testActionFactory(), MWDebugTest\testAppendDebugInfoToApiResultXmlFormat(), SpecialPreferencesTest\testBug41337(), ApiMainTest\testCheckConditionalRequestHeaders(), ApiFormatPhpTest\testCrossDomainMangling(), ApiResultTest\testDeprecatedFunctions(), ActionTest\testDisabledAction_isNotResolved(), DerivativeResourceLoaderContextTest\testGet(), ActionTest\testGetActionName(), ActionTest\testGetActionName_editredlinkWorkaround(), ActionTest\testGetActionName_historysubmitWorkaround(), ActionTest\testGetActionName_revisiondeleteWorkaround(), ActionTest\testGetActionName_whenCanNotUseWikiPage_defaultsToView(), MediaWiki\Session\SessionManagerTest\testGetGlobalSession(), DerivativeResourceLoaderContextTest\testGetHash(), ResourceLoaderImageTest\testGetImageData(), ResourceLoaderStartUpModuleTest\testGetModuleRegistrations(), ResourceLoaderImageTest\testGetPath(), ResourceLoaderModuleTest\testGetVersionHash(), OutputPageTest\testHaveCacheVaryCookies(), RequestContextTest\testImportScopedSession(), MediaWiki\Logger\LegacyLoggerTest\testInterpolate(), ResourceLoaderWikiModuleTest\testIsKnownEmpty(), ResourceLoaderTest\testLessFileCompilation(), RCCacheEntryFactoryTest\testNewForDeleteChange(), RCCacheEntryFactoryTest\testNewForRevUserDeleteChange(), RCCacheEntryFactoryTest\testNewFromRecentChange(), ActionTest\testNull_defaultsToView(), NewParserTest\testParserTest(), SpecialSearchTest\testProfileAndNamespaceLoading(), ResourceLoaderStartUpModuleTest\testRegistrationsMinified(), ResourceLoaderStartUpModuleTest\testRegistrationsUnminified(), MediaWiki\Auth\AuthManagerTest\testSetDefaultUserOptions(), DerivativeResourceLoaderContextTest\testSetLanguage(), DerivativeResourceLoaderContextTest\testSetModules(), DerivativeResourceLoaderContextTest\testSetOnly(), DerivativeResourceLoaderContextTest\testSetSkin(), MediaWikiTest\testTryNormaliseRedirect(), ResourceLoaderModuleTest\testValidateScriptFile(), RequestContextTest\testWikiPageTitle(), ResourceLoader\tryRespondFromFileCache(), ResourceLoader\tryRespondNotModified(), Preferences\tryUISubmit(), HTMLFileCache\useFileCache(), ResourceFileCache\useFileCache(), MediaWiki\Logger\Monolog\KafkaHandler\warning(), Preferences\watchlistPreferences(), wfDebug(), wfDebugLog(), wfErrorLog(), wfLogDBError(), wfLogProfilingData(), and wfThumbError().

◆ $mediawiki

$mediawiki = new MediaWiki()

Definition at line 51 of file load.php.

◆ $resourceLoader

if (! $wgRequest->checkUrlExtension()) $resourceLoader
Initial value:
ConfigFactory::getDefaultInstance()->makeConfig( 'main' ),
LoggerFactory::getInstance( 'resourceloader' )
)
Dynamic JavaScript and CSS resource loading system.

Definition at line 40 of file load.php.

◆ MW_NO_SESSION