MediaWiki master
MediaWiki\Rest\BasicAccess\MWBasicAuthorizer Class Reference

A factory for MWBasicRequestAuthorizer which passes through a UserIdentity. More...

Inherits MediaWiki\Rest\BasicAccess\BasicAuthorizerBase.

Collaboration diagram for MediaWiki\Rest\BasicAccess\MWBasicAuthorizer:

Public Member Functions

 __construct (Authority $authority)
 
- Public Member Functions inherited from MediaWiki\Rest\BasicAccess\BasicAuthorizerBase
 authorize (RequestInterface $request, Handler $handler)
 Determine whether a request should be permitted, given the handler's needsReadAccess() and needsWriteAccess().
 

Protected Member Functions

 createRequestAuthorizer (RequestInterface $request, Handler $handler)
 Create a BasicRequestAuthorizer to authorize the request.
 

Detailed Description

A factory for MWBasicRequestAuthorizer which passes through a UserIdentity.

Access: internal

Definition at line 14 of file MWBasicAuthorizer.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Rest\BasicAccess\MWBasicAuthorizer::__construct ( Authority $authority)

Definition at line 17 of file MWBasicAuthorizer.php.

Member Function Documentation

◆ createRequestAuthorizer()

MediaWiki\Rest\BasicAccess\MWBasicAuthorizer::createRequestAuthorizer ( RequestInterface $request,
Handler $handler )
protected

Create a BasicRequestAuthorizer to authorize the request.

Parameters
RequestInterface$request
Handler$handler
Returns
BasicRequestAuthorizer

Reimplemented from MediaWiki\Rest\BasicAccess\BasicAuthorizerBase.

Definition at line 21 of file MWBasicAuthorizer.php.


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