MediaWiki
REL1_35
load.php
Go to the documentation of this file.
1
<?php
28
use
MediaWiki\MediaWikiServices
;
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
}
$wgRequest
if(! $wgDBerrorLogTZ) $wgRequest
Definition
Setup.php:643
MediaWiki\MediaWikiServices
MediaWikiServices is the service locator for the application scope of MediaWiki.
Definition
MediaWikiServices.php:152
ResourceLoaderContext
Context object that contains information about the state of a specific ResourceLoader web request.
Definition
ResourceLoaderContext.php:33
$mediawiki
$mediawiki
Definition
img_auth.php:48
wfLoadMain
wfLoadMain()
Definition
load.php:40
MediaWiki
A helper class for throttling authentication attempts.
load.php
Generated on Sat Apr 6 2024 00:08:21 for MediaWiki by
1.9.8