MediaWiki  master
MediaWiki\Rest\BasicAccess\MWBasicAuthorizer Class Reference

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

Inheritance diagram for MediaWiki\Rest\BasicAccess\MWBasicAuthorizer:
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(). More...
 

Protected Member Functions

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

Private Attributes

Authority $authority
 

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)

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 22 of file MWBasicAuthorizer.php.

Member Data Documentation

◆ $authority

Authority MediaWiki\Rest\BasicAccess\MWBasicAuthorizer::$authority
private

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