MediaWiki REL1_37
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 getMainRequest ()
 
static main ()
 

Static Private Member Functions

static createRouter (IContextSource $context, RequestInterface $request, ResponseFactory $responseFactory, CorsUtils $cors)
 
static getTextFormatters (MediaWikiServices $services)
 Get a TextFormatter array from MediaWikiServices.
 

Private Attributes

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

Static Private Attributes

static RequestInterface $mainRequest
 

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 
)

Definition at line 151 of file EntryPoint.php.

Member Function Documentation

◆ createRouter()

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

Definition at line 39 of file EntryPoint.php.

◆ execute()

MediaWiki\Rest\EntryPoint::execute ( )

Definition at line 161 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 85 of file EntryPoint.php.

References MediaWiki\MediaWikiServices\getInstance().

◆ getTextFormatters()

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

Get a TextFormatter array from MediaWikiServices.

Parameters
MediaWikiServices$services
Returns
ITextFormatter[]

Definition at line 139 of file EntryPoint.php.

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

◆ main()

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

Definition at line 95 of file EntryPoint.php.

References $wgRequest, $wgTitle, IContextSource\getUser(), and NS_SPECIAL.

Member Data Documentation

◆ $context

RequestContext MediaWiki\Rest\EntryPoint::$context
private

Definition at line 26 of file EntryPoint.php.

◆ $cors

CorsUtils MediaWiki\Rest\EntryPoint::$cors
private

Definition at line 28 of file EntryPoint.php.

◆ $mainRequest

RequestInterface MediaWiki\Rest\EntryPoint::$mainRequest
staticprivate

Definition at line 30 of file EntryPoint.php.

◆ $request

RequestInterface MediaWiki\Rest\EntryPoint::$request
private

Definition at line 20 of file EntryPoint.php.

◆ $router

Router MediaWiki\Rest\EntryPoint::$router
private

Definition at line 24 of file EntryPoint.php.

◆ $webResponse

WebResponse MediaWiki\Rest\EntryPoint::$webResponse
private

Definition at line 22 of file EntryPoint.php.


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