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 (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)
 
- Protected Member Functions inherited from MediaWiki\Rest\BasicAccess\BasicAuthorizerBase
 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

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: