MediaWiki REL1_35
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 getMainRequest ()
 
static getTextFormatters (MediaWikiServices $services)
 Get a TextFormatter array from MediaWikiServices.
 
static main ()
 

Static Private Member Functions

static createRouter (IContextSource $context, RequestInterface $request)
 

Private Attributes

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

Static Private Attributes

static RequestInterface $mainRequest
 

Detailed Description

Definition at line 16 of file EntryPoint.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 133 of file EntryPoint.php.

Member Function Documentation

◆ createRouter()

static MediaWiki\Rest\EntryPoint::createRouter ( IContextSource  $context,
RequestInterface  $request 
)
staticprivate
Parameters
IContextSource$context
RequestInterface$request
Returns
Router

Definition at line 33 of file EntryPoint.php.

◆ execute()

MediaWiki\Rest\EntryPoint::execute ( )

Definition at line 142 of file EntryPoint.php.

References $line.

◆ getMainRequest()

static MediaWiki\Rest\EntryPoint::getMainRequest ( )
static
Returns
?RequestInterface The RequestInterface object used by this entry point.

Definition at line 78 of file EntryPoint.php.

References MediaWiki\MediaWikiServices\getInstance().

◆ getTextFormatters()

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

Get a TextFormatter array from MediaWikiServices.

Parameters
MediaWikiServices$services
Returns
ITextFormatter[]

Definition at line 120 of file EntryPoint.php.

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

◆ main()

static MediaWiki\Rest\EntryPoint::main ( )
static

Definition at line 88 of file EntryPoint.php.

References $wgRequest, $wgTitle, and NS_SPECIAL.

Member Data Documentation

◆ $context

RequestContext MediaWiki\Rest\EntryPoint::$context
private

Definition at line 24 of file EntryPoint.php.

◆ $mainRequest

RequestInterface MediaWiki\Rest\EntryPoint::$mainRequest
staticprivate

Definition at line 26 of file EntryPoint.php.

◆ $request

RequestInterface MediaWiki\Rest\EntryPoint::$request
private

Definition at line 18 of file EntryPoint.php.

◆ $router

Router MediaWiki\Rest\EntryPoint::$router
private

Definition at line 22 of file EntryPoint.php.

◆ $webResponse

WebResponse MediaWiki\Rest\EntryPoint::$webResponse
private

Definition at line 20 of file EntryPoint.php.


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