MediaWiki  1.34.0
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 (UserIdentity $user, PermissionManager $permissionManager)
 
- 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

PermissionManager $permissionManager
 
UserIdentity $user
 

Detailed Description

A factory for MWBasicRequestAuthorizer which passes through a UserIdentity.

Definition at line 15 of file MWBasicAuthorizer.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Rest\BasicAccess\MWBasicAuthorizer::__construct ( UserIdentity  $user,
PermissionManager  $permissionManager 
)

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

Member Data Documentation

◆ $permissionManager

PermissionManager MediaWiki\Rest\BasicAccess\MWBasicAuthorizer::$permissionManager
private

◆ $user

UserIdentity MediaWiki\Rest\BasicAccess\MWBasicAuthorizer::$user
private

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