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 wfLoadMain();
39 
40 function wfLoadMain() {
41  global $wgRequest;
42 
43  // Disable ChronologyProtector so that we don't wait for unrelated MediaWiki
44  // writes when getting database connections for ResourceLoader. (T192611)
45  MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->disableChronologyProtection();
46 
47  $resourceLoader = MediaWikiServices::getInstance()->getResourceLoader();
48  $context = new ResourceLoaderContext( $resourceLoader, $wgRequest );
49 
50  // Respond to ResourceLoader request
51  $resourceLoader->respond( $context );
52 
53  Profiler::instance()->setAllowOutput();
54 
55  $mediawiki = new MediaWiki();
56  $mediawiki->doPostOutputShutdown();
57 }
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:69
MediaWiki\MediaWikiServices
MediaWikiServices is the service locator for the application scope of MediaWiki.
Definition: MediaWikiServices.php:158
MediaWiki
A helper class for throttling authentication attempts.
wfLoadMain
wfLoadMain()
Definition: load.php:40
$mediawiki
$mediawiki
Definition: img_auth.php:48
$wgRequest
if(! $wgDBerrorLogTZ) $wgRequest
Definition: Setup.php:644