MediaWiki  master
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.
29 define( 'MW_NO_SESSION', 1 );
30 
31 define( 'MW_ENTRY_POINT', 'load' );
32 
33 require __DIR__ . '/includes/WebStart.php';
34 
35 // Disable ChronologyProtector so that we don't wait for unrelated MediaWiki
36 // writes when getting database connections for ResourceLoader. (T192611)
37 MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->disableChronologyProtection();
38 
39 $resourceLoader = MediaWikiServices::getInstance()->getResourceLoader();
41 
42 // Respond to ResourceLoader request
43 $resourceLoader->respond( $context );
44 
45 Profiler::instance()->setAllowOutput();
46 
48 $mediawiki->doPostOutputShutdown();
ResourceLoaderContext
Context object that contains information about the state of a specific ResourceLoader web request.
Definition: ResourceLoaderContext.php:33
Profiler\instance
static instance()
Singleton.
Definition: Profiler.php:63
MediaWiki\MediaWikiServices
MediaWikiServices is the service locator for the application scope of MediaWiki.
Definition: MediaWikiServices.php:130
$resourceLoader
$resourceLoader
Definition: load.php:39
$mediawiki
$mediawiki
Definition: load.php:47
MediaWiki
A helper class for throttling authentication attempts.
$context
$context
Definition: load.php:40
$wgRequest
if(! $wgDBerrorLogTZ) $wgRequest
Definition: Setup.php:713