MediaWiki REL1_34
load.php
Go to the documentation of this file.
1<?php
26
27// This endpoint is supposed to be independent of request cookies and other
28// details of the session. Enforce this constraint with respect to session use.
29define( 'MW_NO_SESSION', 1 );
30
31define( 'MW_ENTRY_POINT', 'load' );
32
33require __DIR__ . '/includes/WebStart.php';
34
35// URL safety checks
36if ( !$wgRequest->checkUrlExtension() ) {
37 return;
38}
39
40// Disable ChronologyProtector so that we don't wait for unrelated MediaWiki
41// writes when getting database connections for ResourceLoader. (T192611)
42MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->disableChronologyProtection();
43
44$resourceLoader = MediaWikiServices::getInstance()->getResourceLoader();
46
47// Respond to ResourceLoader request
48$resourceLoader->respond( $context );
49
50Profiler::instance()->setAllowOutput();
51
53$mediawiki->doPostOutputShutdown( 'fast' );
if(! $wgDBerrorLogTZ) $wgRequest
Definition Setup.php:751
MediaWikiServices is the service locator for the application scope of MediaWiki.
Context object that contains information about the state of a specific ResourceLoader web request.
$resourceLoader
Definition load.php:44
$context
Definition load.php:45
$mediawiki
Definition load.php:52
A helper class for throttling authentication attempts.