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 // URL safety checks
36 if ( !$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)
42 MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->disableChronologyProtection();
43 
44 $resourceLoader = MediaWikiServices::getInstance()->getResourceLoader();
46 
47 // Respond to ResourceLoader request
48 $resourceLoader->respond( $context );
49 
50 Profiler::instance()->setAllowOutput();
51 
53 $mediawiki->doPostOutputShutdown();
$resourceLoader
Definition: load.php:44
$context
Definition: load.php:45
$mediawiki
Definition: load.php:52
static instance()
Singleton.
Definition: Profiler.php:63
A helper class for throttling authentication attempts.
if(! $wgDBerrorLogTZ) $wgRequest
Definition: Setup.php:729
Context object that contains information about the state of a specific ResourceLoader web request...