MediaWiki
1.34.0
|
A factory for MWBasicRequestAuthorizer which passes through a UserIdentity. More...
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 |
A factory for MWBasicRequestAuthorizer which passes through a UserIdentity.
Definition at line 15 of file MWBasicAuthorizer.php.
MediaWiki\Rest\BasicAccess\MWBasicAuthorizer::__construct | ( | UserIdentity | $user, |
PermissionManager | $permissionManager | ||
) |
Definition at line 22 of file MWBasicAuthorizer.php.
References MediaWiki\Rest\BasicAccess\MWBasicAuthorizer\$permissionManager, and MediaWiki\Rest\BasicAccess\MWBasicAuthorizer\$user.
|
protected |
Create a BasicRequestAuthorizer to authorize the request.
RequestInterface | $request | |
Handler | $handler |
Reimplemented from MediaWiki\Rest\BasicAccess\BasicAuthorizerBase.
Definition at line 27 of file MWBasicAuthorizer.php.
|
private |
Definition at line 20 of file MWBasicAuthorizer.php.
Referenced by MediaWiki\Rest\BasicAccess\MWBasicAuthorizer\__construct().
|
private |
Definition at line 17 of file MWBasicAuthorizer.php.
Referenced by MediaWiki\Rest\BasicAccess\MWBasicAuthorizer\__construct().