MediaWiki
REL1_34
load.php
Go to the documentation of this file.
1
<?php
25
use
MediaWiki\MediaWikiServices
;
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();
45
$context
=
new
ResourceLoaderContext
(
$resourceLoader
,
$wgRequest
);
46
47
// Respond to ResourceLoader request
48
$resourceLoader
->respond(
$context
);
49
50
Profiler::instance()->setAllowOutput();
51
52
$mediawiki
=
new
MediaWiki
();
53
$mediawiki
->doPostOutputShutdown(
'fast'
);
$wgRequest
if(! $wgDBerrorLogTZ) $wgRequest
Definition
Setup.php:751
MediaWiki\MediaWikiServices
MediaWikiServices is the service locator for the application scope of MediaWiki.
Definition
MediaWikiServices.php:117
ResourceLoaderContext
Context object that contains information about the state of a specific ResourceLoader web request.
Definition
ResourceLoaderContext.php:33
$resourceLoader
$resourceLoader
Definition
load.php:44
$context
$context
Definition
load.php:45
$mediawiki
$mediawiki
Definition
load.php:52
MediaWiki
A helper class for throttling authentication attempts.
load.php
Generated on Fri Apr 5 2024 23:11:04 for MediaWiki by
1.9.8