MediaWiki  master
load.php
Go to the documentation of this file.
1 <?php
29 
30 // This endpoint is supposed to be independent of request cookies and other
31 // details of the session. Enforce this constraint with respect to session use.
32 define( 'MW_NO_SESSION', 1 );
33 
34 define( 'MW_ENTRY_POINT', 'load' );
35 
36 require __DIR__ . '/includes/WebStart.php';
37 
38 // Disable ChronologyProtector so that we don't wait for unrelated MediaWiki
39 // writes when getting database connections for ResourceLoader. (T192611)
40 MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->disableChronologyProtection();
41 
42 $resourceLoader = MediaWikiServices::getInstance()->getResourceLoader();
44 
45 // Respond to ResourceLoader request
46 $resourceLoader->respond( $context );
47 
48 Profiler::instance()->setAllowOutput();
49 
51 $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:137
$resourceLoader
$resourceLoader
Definition: load.php:42
$mediawiki
$mediawiki
Definition: load.php:50
MediaWiki
A helper class for throttling authentication attempts.
$context
$context
Definition: load.php:43
$wgRequest
if(! $wgDBerrorLogTZ) $wgRequest
Definition: Setup.php:642