MediaWiki master
api.php
Go to the documentation of this file.
1<?php
18
19// So extensions (and other code) can check whether they're running in API mode
20define( 'MW_API', true );
21define( 'MW_ENTRY_POINT', 'api' );
22
23require __DIR__ . '/includes/WebStart.php';
24
25// Construct entry point object and call doRun() to handle the request.
26( new ApiEntryPoint(
27 RequestContext::getMain(),
29 MediaWikiServices::getInstance()
30) )->run();
Implementation of the API entry point, for web browser navigations, usually via an Action or SpecialP...
Group all the pieces relevant to the context of a request into one instance.
Utility class wrapping PHP runtime state.
Service locator for MediaWiki core services.