MediaWiki REL1_31
load.php
Go to the documentation of this file.
1<?php
27
28// This endpoint is supposed to be independent of request cookies and other
29// details of the session. Enforce this constraint with respect to session use.
30define( 'MW_NO_SESSION', 1 );
31
32require __DIR__ . '/includes/WebStart.php';
33
34// URL safety checks
35if ( !$wgRequest->checkUrlExtension() ) {
36 return;
37}
38
39// Disable ChronologyProtector so that we don't wait for unrelated MediaWiki
40// writes when getting database connections for ResourceLoader. (T192611)
41MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->disableChronologyProtection();
42
43// Set up ResourceLoader
45 ConfigFactory::getDefaultInstance()->makeConfig( 'main' ),
46 LoggerFactory::getInstance( 'resourceloader' )
47);
49
50// Respond to ResourceLoader request
51$resourceLoader->respond( $context );
52
53Profiler::instance()->setTemplated( true );
54
56$mediawiki->doPostOutputShutdown( 'fast' );
if(! $wgDBerrorLogTZ) $wgRequest
Definition Setup.php:737
PSR-3 logger instance factory.
MediaWikiServices is the service locator for the application scope of MediaWiki.
Object passed around to modules which contains information about the state of a specific loader reque...
Dynamic JavaScript and CSS resource loading system.
$resourceLoader
Definition load.php:44
$context
Definition load.php:48
$mediawiki
Definition load.php:55
A helper class for throttling authentication attempts.