MediaWiki REL1_34
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()
 
 $resourceLoader = MediaWikiServices::getInstance()->getResourceLoader()
 
const MW_ENTRY_POINT 'load'
 
const MW_NO_SESSION 1
 

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 45 of file load.php.

Referenced by ApiMain\__construct(), HTMLForm\__construct(), OOUIHTMLForm\__construct(), ImageGalleryBase\__construct(), SpecialRecentChanges\__construct(), CryptHKDF\__construct(), DerivativeContext\__construct(), OutputPage\__construct(), MediaWiki\__construct(), Action\__construct(), MediaWiki\Shell\Command\__destruct(), LogPage\addEntry(), MWDebug\appendDebugInfoToApiResult(), Parser\braceSubstitution(), ResourceLoaderModule\buildContent(), SpecialBookSources\buildForm(), ProtectionForm\buildForm(), SpecialNewFiles\buildForm(), DummyLinker\buildRollbackLink(), Linker\buildRollbackLink(), ChangeTags\buildTagFilterSelector(), MediaWiki\Special\SpecialPageFactory\capturePath(), SpecialPageFactory\capturePath(), SpecialPageLanguage\changePageLanguage(), MediaWiki\Storage\PageEditStash\checkCache(), ResourceLoaderFileModule\compileLessFile(), ConfirmEditHooks\confirmEditMerged(), SimpleCaptcha\confirmEditMerged(), ResourceLoaderUserTokensModule\contextUserTokens(), CategoryTree\createCountString(), ContentHandler\createDifferenceEngine(), RevisionDeleter\createList(), MediaWiki\Logger\LogCapturingSpi\createLogger(), MediaWiki\Preferences\DefaultPreferencesFactory\datetimePreferences(), MWDebug\debugMsg(), Article\delete(), MediaWiki\Logger\LegacyLogger\destination(), SimpleCaptcha\doConfirmEdit(), Article\doDelete(), HttpError\doLog(), SimpleCaptcha\editShowCaptcha(), SpecialAutoblockList\execute(), SpecialBlockList\execute(), SpecialEmailUser\execute(), SpecialNewFiles\execute(), PhpHttpRequest\execute(), RebuildFileCache\execute(), MediaWiki\Special\SpecialPageFactory\executePath(), SpecialPageFactory\executePath(), ResourceLoaderFileModule\expandPackageFiles(), SpecialReplaceText\extractContext(), ApiQueryRevisionsBase\extractDeprecatedContent(), Action\factory(), ImageGalleryBase\factory(), PageImages\Hooks\LinksUpdateHookHandler\fetchFileMetadata(), SpamBlacklistHooks\filterMergedContent(), MediaWiki\Logger\Monolog\LogstashFormatter\fixKeyConflicts(), FormatMetadata\flattenArrayContentLang(), MediaWiki\Logger\LegacyLogger\format(), DiffFormatter\format(), MediaWiki\Logger\LegacyLogger\formatAsWfDebug(), FeedUtils\formatDiffRow(), File\formatMetadata(), PdfHandler\formatMetadata(), ExifBitmapHandler\formatMetadata(), GIFHandler\formatMetadata(), PNGHandler\formatMetadata(), MediaHandler\formatMetadataHelper(), ChangeTags\formatSummaryRow(), MediaWiki\Logger\Monolog\LogstashFormatter\formatV0(), MediaWiki\Logger\Monolog\LogstashFormatter\formatV1(), MWCryptHKDF\generate(), CryptHKDF\generate(), MWCryptHKDF\generateHex(), DummyLinker\generateRollback(), Linker\generateRollback(), MediaWiki\Preferences\DefaultPreferencesFactory\generateSkinOptions(), Action\getActionName(), AuthManagerSpecialPage\getAuthForm(), LoginSignupSpecialPage\getAuthForm(), MediaWiki\Block\AbstractBlock\getBlockErrorParams(), CacheHelper\getCachedNotice(), ChangesListSpecialPage\getChangeTagList(), ChangesListSpecialPage\getChangeTagListSummary(), SpecialEditWatchlist\getClearForm(), ResourceLoader\getCombinedVersion(), ResourceLoaderStartUpModule\getConfigSettings(), ResourceLoaderWikiModule\getContent(), ResourceLoaderWikiModule\getContentObj(), Action\getContext(), Profiler\getContext(), ResourceLoaderLanguageDataModule\getData(), MediaWiki\Preferences\DefaultPreferencesFactory\getDateOptions(), MWDebug\getDebugHTML(), MWDebug\getDebugInfo(), CiteDataModule\getDefinitionSummary(), ResourceLoaderFileModule\getDefinitionSummary(), ResourceLoaderImageModule\getDefinitionSummary(), ResourceLoaderSkinModule\getDefinitionSummary(), ResourceLoaderWikiModule\getDefinitionSummary(), TimelessVariablesModule\getDefinitionSummary(), ResourceLoaderForeignApiModule\getDependencies(), ResourceLoaderModule\getDeprecationInformation(), ResourceLoaderModule\getFileDependencies(), ResourceLoaderFileModule\getFileHashes(), ResourceLoaderImageModule\getFileHashes(), MWDebug\getFilesIncluded(), ResourceLoaderFileModule\getFlip(), ResourceLoaderModule\getFlip(), HTMLFancyCaptchaFieldTest\getForm(), FormSpecialPage\getForm(), MediaWiki\Preferences\DefaultPreferencesFactory\getForm(), FormatMetadata\getFormattedData(), MediaWiki\Preferences\DefaultPreferencesFactory\getFormDescriptor(), SpecialPreferences\getFormObject(), ResourceLoaderImageModule\getGlobalVariants(), ResourceLoaderImage\getImageData(), ResourceLoaderImageModule\getImages(), DummyLinker\getInvalidTitleDescription(), Linker\getInvalidTitleDescription(), ResourceLoaderLessVarFileModule\getLessVars(), TimelessVariablesModule\getLessVars(), Vector\ResourceLoaderLessModule\getLessVars(), UserGroupMembership\getLink(), ResourceLoaderLessVarFileModule\getMessageBlob(), ResourceLoaderModule\getMessageBlob(), ResourceLoaderModule\getModuleContent(), WikiEditorHooks\getModuleData(), WikiEditorHooks\getModuleDataSummary(), ResourceLoaderStartUpModule\getModuleRegistrations(), SpecialEditWatchlist\getNormalForm(), User\getOptionKinds(), ResourceLoaderFileModule\getPackageFiles(), ResourceLoaderSiteModule\getPages(), ResourceLoaderSiteStylesModule\getPages(), ResourceLoaderUserModule\getPages(), ResourceLoaderUserStylesModule\getPages(), ResourceLoaderImage\getPath(), MediaWiki\Block\CompositeBlock\getPermissionsError(), SpecialEditWatchlist\getRawForm(), ChangesListSpecialPage\getRcFiltersConfigSummary(), ChangesListSpecialPage\getRcFiltersConfigVars(), ManualLogEntry\getRecentChange(), OutputPage\getRlClient(), CiteDataModule\getScript(), ResourceLoaderSyntaxHighlightVisualEditorModule\getScript(), ResourceLoaderFileModule\getScript(), ResourceLoaderLanguageDataModule\getScript(), ResourceLoaderStartUpModule\getScript(), ResourceLoaderUserDefaultsModule\getScript(), ResourceLoaderUserOptionsModule\getScript(), ResourceLoaderUserTokensModule\getScript(), ResourceLoaderWikiModule\getScript(), ResourceLoaderFileModule\getScriptFiles(), ResourceLoaderFileModule\getScriptURLsForDebug(), ResourceLoaderModule\getScriptURLsForDebug(), ContentHandler\getSlotDiffRenderer(), UnknownContentHandler\getSlotDiffRendererInternal(), ResourceLoaderStartUpModule\getStoreVary(), ResourceLoaderImageModule\getStyleDeclarations(), ResourceLoaderFileModule\getStyleFiles(), ResourceLoaderFileModule\getStyles(), ResourceLoaderImageModule\getStyles(), ResourceLoaderSkinModule\getStyles(), ResourceLoaderWikiModule\getStyles(), ResourceLoaderFileModule\getStyleURLsForDebug(), ResourceLoaderModule\getStyleURLsForDebug(), ParserOutput\getText(), MediaWiki\Preferences\DefaultPreferencesFactory\getTimezoneOptions(), ResourceLoaderWikiModule\getTitleInfo(), SpecialReplaceText\getTitlesForEditingWithContext(), SpecialUpload\getUploadForm(), ResourceLoaderImage\getUrl(), ResourceLoaderModule\getVary(), ResourceLoaderModule\getVersionHash(), RESTBagOStuff\handleError(), RequestContext\importScopedSession(), MediaWiki\Logger\LegacyLogger\interpolate(), WikitextContent\isCountable(), ResourceLoaderUserOptionsModule\isKnownEmpty(), ResourceLoaderWikiModule\isKnownEmpty(), HTMLFileCache\loadFromFileCache(), MediaWiki\Preferences\DefaultPreferencesFactory\loadPreferenceValues(), MediaWiki\Logger\ConsoleLogger\log(), MediaWiki\Logger\LegacyLogger\log(), MWExceptionHandler\logException(), MediaWiki\Auth\Throttler\logRejection(), ChangesListSpecialPage\makeLegend(), ApiBase\makeMessage(), ResourceLoader\makeModuleResponse(), ContentHandler\makeParserOptions(), Article\makeParserOptions(), WikiPage\makeParserOptions(), ResourceLoader\makeVersionQuery(), SpecialPrefixindex\namespacePrefixForm(), ParserOptions\newCanonical(), RequestContext\newExtraneousContext(), ParserOptions\newFromContext(), ResourceFileCache\newFromContext(), Article\newFromTitle(), Article\newFromWikiPage(), PageImages\Tests\ApiQueryPageImagesTest\newInstance(), TextExtracts\Test\ApiQueryExtractsTest\newInstance(), onApiFormatHighlight(), GadgetHooks\onEditFilterMergedContent(), PageImages\onInfoAction(), ResourceLoader\outputErrorAndLog(), SpecialAllPages\outputHTMLForm(), MediaWiki\Revision\RenderedRevision\outputVariesOnRevisionMetaData(), SpecialReplaceText\pageListForm(), MediaWiki\Storage\PageEditStash\parseAndCache(), ResourceLoader\preloadModuleInfo(), ResourceLoaderWikiModule\preloadTitleInfo(), MediaWiki\preOutputCommit(), SpecialTags\processCreateTagForm(), SpecialBlock\processForm(), SpecialTags\processTagForm(), ApiPageSet\processTitlesArray(), MediaWiki\Preferences\DefaultPreferencesFactory\profilePreferences(), ResourceLoaderFileModule\readStyleFile(), ResourceLoaderFileModule\readStyleFiles(), SpecialWatchlist\registerFilters(), UserNotLoggedIn\report(), Wikimedia\Rdbms\LoadBalancer\reportConnectionError(), User\resetOptions(), ResourceLoader\respond(), AssembleUploadChunksJob\run(), PublishStashedFileJob\run(), MediaWiki\run(), ResourceLoaderModule\saveFileDependencies(), ContentSecurityPolicy\sendHeaders(), ResourceLoaderImage\sendResponseHeaders(), ResourceLoader\sendResponseHeaders(), Article\setContext(), Profiler\setContext(), SpecialPage\setContext(), ResourceLoaderModule\setFileDependencies(), Article\setOldSubtitle(), LoginSignupSpecialPage\setSessionUserForCurrentRequest(), SimpleCaptcha\shouldCheck(), ResourceLoaderWikiModule\shouldEmbedModule(), MediaWiki\Logger\LegacyLogger\shouldEmit(), Article\showRedirectedFromHeader(), SpecialPreferences\showResetForm(), SpecialUploadStash\showUploads(), MediaWiki\Preferences\DefaultPreferencesFactory\skinPreferences(), SpecialEmailUser\submit(), MediaWiki\Preferences\DefaultPreferencesFactory\submitForm(), ChangeTags\tagDescription(), ChangeTags\tagLongDescriptionMessage(), ChangeTags\tagShortDescriptionMessage(), PageImages\Tests\PageImagesTest\testGivenNonExistingPageOnBeforePageDisplayDoesNotAddMeta(), HTMLReCaptchaNoCaptchaFieldTest\testSubmit(), ChangeTags\truncateTagDescription(), ResourceLoader\tryRespondFromFileCache(), ResourceLoader\tryRespondNotModified(), HTMLFileCache\useFileCache(), ResourceFileCache\useFileCache(), ScribuntoHooks\validateScript(), MediaWiki\Logger\Monolog\KafkaHandler\warning(), MediaWiki\Preferences\DefaultPreferencesFactory\watchlistPreferences(), wfDebug(), wfDebugLog(), wfLogDBError(), wfLogProfilingData(), and wfThumbError().

◆ $mediawiki

$mediawiki = new MediaWiki()

Definition at line 52 of file load.php.

◆ $resourceLoader

◆ MW_ENTRY_POINT

const MW_ENTRY_POINT 'load'

Definition at line 31 of file load.php.

◆ MW_NO_SESSION