Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2751824
api.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
780 B
Referenced Files
None
Subscribers
None
api.php
View Options
<?php
/**
* The web entry point for all %Action API queries, handled by ApiMain
* and ApiBase subclasses.
*
* @see ApiEntryPoint The corresponding entry point class
*
* @license GPL-2.0-or-later
* @file
* @ingroup entrypoint
* @ingroup API
*/
use
MediaWiki\Api\ApiEntryPoint
;
use
MediaWiki\Context\RequestContext
;
use
MediaWiki\EntryPointEnvironment
;
use
MediaWiki\MediaWikiServices
;
// So extensions (and other code) can check whether they're running in API mode
define
(
'MW_API'
,
true
);
define
(
'MW_ENTRY_POINT'
,
'api'
);
require
__DIR__
.
'/includes/WebStart.php'
;
// Construct entry point object and call doRun() to handle the request.
(
new
ApiEntryPoint
(
RequestContext
::
getMain
(),
new
EntryPointEnvironment
(),
MediaWikiServices
::
getInstance
()
)
)->
run
();
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jul 3, 19:13 (1 d, 16 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2a/c1/e2d35fcd0ac44ef5bed343aeb200
Default Alt Text
api.php (780 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment