MediaWiki
master
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
// Disable ChronologyProtector so that we don't wait for unrelated MediaWiki
39
// writes when getting database connections for ResourceLoader. (T192611)
40
MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->disableChronologyProtection();
41
42
$resourceLoader
= MediaWikiServices::getInstance()->getResourceLoader();
43
$context
=
new
ResourceLoaderContext
(
$resourceLoader
,
$wgRequest
);
44
45
// Respond to ResourceLoader request
46
$resourceLoader
->respond(
$context
);
47
48
Profiler::instance
()->setAllowOutput();
49
50
$mediawiki
=
new
MediaWiki
();
51
$mediawiki
->doPostOutputShutdown();
ResourceLoaderContext
Context object that contains information about the state of a specific ResourceLoader web request.
Definition:
ResourceLoaderContext.php:33
Profiler\instance
static instance()
Singleton.
Definition:
Profiler.php:63
MediaWiki\MediaWikiServices
MediaWikiServices is the service locator for the application scope of MediaWiki.
Definition:
MediaWikiServices.php:152
$resourceLoader
$resourceLoader
Definition:
load.php:42
$mediawiki
$mediawiki
Definition:
load.php:50
MediaWiki
A helper class for throttling authentication attempts.
$context
$context
Definition:
load.php:43
$wgRequest
if(! $wgDBerrorLogTZ) $wgRequest
Definition:
Setup.php:643
load.php
Generated on Sun Jun 21 2020 21:08:48 for MediaWiki by
1.8.18