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, CorsUtils $cors)
 
 execute ()
 

Static Public Member Functions

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

Static Private Member Functions

static createRouter (IContextSource $context, RequestInterface $request, ResponseFactory $responseFactory, CorsUtils $cors)
 

Private Attributes

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

Detailed Description

Definition at line 18 of file EntryPoint.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ createRouter()

static MediaWiki\Rest\EntryPoint::createRouter ( IContextSource  $context,
RequestInterface  $request,
ResponseFactory  $responseFactory,
CorsUtils  $cors 
)
staticprivate

◆ execute()

MediaWiki\Rest\EntryPoint::execute ( )

Definition at line 151 of file EntryPoint.php.

References $line, 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 128 of file EntryPoint.php.

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

◆ main()

Member Data Documentation

◆ $context

RequestContext MediaWiki\Rest\EntryPoint::$context
private

◆ $cors

CorsUtils MediaWiki\Rest\EntryPoint::$cors
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 22 of file EntryPoint.php.

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


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