Page MenuHomeWickedGov Phorge

api.php
No OneTemporary

Size
780 B
Referenced Files
None
Subscribers
None
<?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

Mime Type
text/x-php
Expires
Fri, Jul 3, 19:13 (1 d, 14 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2a/c1/e2d35fcd0ac44ef5bed343aeb200
Default Alt Text
api.php (780 B)

Event Timeline