MediaWiki
REL1_31
load.php
Go to the documentation of this file.
1
<?php
25
use
MediaWiki\Logger\LoggerFactory
;
26
use
MediaWiki\MediaWikiServices
;
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.
30
define(
'MW_NO_SESSION'
, 1 );
31
32
require __DIR__ .
'/includes/WebStart.php'
;
33
34
// URL safety checks
35
if
( !
$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)
41
MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->disableChronologyProtection();
42
43
// Set up ResourceLoader
44
$resourceLoader
=
new
ResourceLoader
(
45
ConfigFactory::getDefaultInstance()->makeConfig(
'main'
),
46
LoggerFactory::getInstance(
'resourceloader'
)
47
);
48
$context
=
new
ResourceLoaderContext
(
$resourceLoader
,
$wgRequest
);
49
50
// Respond to ResourceLoader request
51
$resourceLoader
->respond(
$context
);
52
53
Profiler::instance()->setTemplated(
true
);
54
55
$mediawiki
=
new
MediaWiki
();
56
$mediawiki
->doPostOutputShutdown(
'fast'
);
$wgRequest
if(! $wgDBerrorLogTZ) $wgRequest
Definition
Setup.php:737
MediaWiki\Logger\LoggerFactory
PSR-3 logger instance factory.
Definition
LoggerFactory.php:45
MediaWiki\MediaWikiServices
MediaWikiServices is the service locator for the application scope of MediaWiki.
Definition
MediaWikiServices.php:88
ResourceLoaderContext
Object passed around to modules which contains information about the state of a specific loader reque...
Definition
ResourceLoaderContext.php:32
ResourceLoader
Dynamic JavaScript and CSS resource loading system.
Definition
ResourceLoader.php:38
$resourceLoader
$resourceLoader
Definition
load.php:44
$context
$context
Definition
load.php:48
$mediawiki
$mediawiki
Definition
load.php:55
MediaWiki
A helper class for throttling authentication attempts.
load.php
Generated on Mon Nov 25 2024 15:35:56 for MediaWiki by
1.10.0