Movatterモバイル変換


[0]ホーム

URL:


MediaWiki master
api.php
Go to the documentation of this file.
1<?php
14useMediaWiki\Api\ApiEntryPoint;
15useMediaWiki\Context\RequestContext;
16useMediaWiki\EntryPointEnvironment;
17useMediaWiki\MediaWikiServices;
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(newApiEntryPoint(
27 RequestContext::getMain(),
28newEntryPointEnvironment(),
29 MediaWikiServices::getInstance()
30) )->run();
MediaWiki\Api\ApiEntryPoint
Implementation of the API entry point, for web browser navigations, usually via an Action or SpecialP...
DefinitionApiEntryPoint.php:36
MediaWiki\Context\RequestContext
Group all the pieces relevant to the context of a request into one instance.
DefinitionRequestContext.php:53
MediaWiki\EntryPointEnvironment
Utility class wrapping PHP runtime state.
DefinitionEntryPointEnvironment.php:15
MediaWiki\MediaWikiServices
Service locator for MediaWiki core services.
DefinitionMediaWikiServices.php:256

[8]ページ先頭

©2009-2025 Movatter.jp