MediaWiki  master
load.php
Go to the documentation of this file.
1 <?php
30 
31 // This endpoint is supposed to be independent of request cookies and other
32 // details of the session. Enforce this constraint with respect to session use.
33 define( 'MW_NO_SESSION', 1 );
34 
35 define( 'MW_ENTRY_POINT', 'load' );
36 
37 require __DIR__ . '/includes/WebStart.php';
38 
39 wfLoadMain();
40 
41 function wfLoadMain() {
42  global $wgRequest;
43 
44  $services = MediaWikiServices::getInstance();
45  // Disable ChronologyProtector so that we don't wait for unrelated MediaWiki
46  // writes when getting database connections for ResourceLoader. (T192611)
47  $services->getChronologyProtector()->setEnabled( false );
48 
49  $resourceLoader = $services->getResourceLoader();
50  $context = new Context( $resourceLoader, $wgRequest );
51 
52  // Respond to ResourceLoader request
53  $resourceLoader->respond( $context );
54 
55  // Append any visible profiling data in a manner appropriate for the Content-Type
56  $profiler = Profiler::instance();
57  $profiler->setAllowOutput();
58  $profiler->logDataPageOutputOnly();
59 
60  $mediawiki = new MediaWiki();
61  $mediawiki->doPostOutputShutdown();
62 }
global $wgRequest
Definition: Setup.php:414
Service locator for MediaWiki core services.
Context object that contains information about the state of a specific ResourceLoader web request.
Definition: Context.php:45
The MediaWiki class is the helper class for the index.php entry point.
Definition: MediaWiki.php:50
static instance()
Definition: Profiler.php:105
$mediawiki
Definition: img_auth.php:53
wfLoadMain()
Definition: load.php:41