MediaWiki master
api.php
Go to the documentation of this file.
1<?php
32
33// So extensions (and other code) can check whether they're running in API mode
34define( 'MW_API', true );
35define( 'MW_ENTRY_POINT', 'api' );
36
37require __DIR__ . '/includes/WebStart.php';
38
39// Construct entry point object and call doRun() to handle the request.
40( new ApiEntryPoint(
41 RequestContext::getMain(),
43 MediaWikiServices::getInstance()
44) )->run();
run()
Run the job.
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.