MediaWiki  master
MediaWiki\Rest\EntryPoint Class Reference
Collaboration diagram for MediaWiki\Rest\EntryPoint:

Public Member Functions

 __construct (RequestContext $context, RequestInterface $request, WebResponse $webResponse, Router $router)
 
 execute ()
 

Static Public Member Functions

static getTextFormatters (MediaWikiServices $services)
 Get a TextFormatter array from MediaWikiServices. More...
 
static main ()
 

Private Attributes

RequestContext $context
 
RequestInterface $request
 
Router $router
 
WebResponse $webResponse
 

Detailed Description

Definition at line 15 of file EntryPoint.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Rest\EntryPoint::__construct ( RequestContext  $context,
RequestInterface  $request,
WebResponse  $webResponse,
Router  $router 
)

Member Function Documentation

◆ execute()

MediaWiki\Rest\EntryPoint::execute ( )

Definition at line 114 of file EntryPoint.php.

References $line, $response, and MediaWiki\preOutputCommit().

◆ getTextFormatters()

static MediaWiki\Rest\EntryPoint::getTextFormatters ( MediaWikiServices  $services)
static

Get a TextFormatter array from MediaWikiServices.

Parameters
MediaWikiServices$services
Returns
ITextFormatter[]

Definition at line 92 of file EntryPoint.php.

References $lang, MediaWiki\MediaWikiServices\getMainConfig(), and MediaWiki\MediaWikiServices\getMessageFormatterFactory().

◆ main()

Member Data Documentation

◆ $context

RequestContext MediaWiki\Rest\EntryPoint::$context
private

◆ $request

RequestInterface MediaWiki\Rest\EntryPoint::$request
private

◆ $router

Router MediaWiki\Rest\EntryPoint::$router
private

◆ $webResponse

WebResponse MediaWiki\Rest\EntryPoint::$webResponse
private

Definition at line 19 of file EntryPoint.php.

Referenced by MediaWiki\Rest\EntryPoint\__construct().


The documentation for this class was generated from the following file: