MediaWiki REL1_37
|
Public Member Functions | |
__construct (array $authorizers=[]) | |
addAuthorizer (BasicAuthorizerInterface $authorizer) | |
Adds a BasicAuthorizerInterface to the chain of authorizers. | |
authorize (RequestInterface $request, Handler $handler) | |
Checks all registered authorizers and returns the first encountered error. | |
Private Attributes | |
BasicAuthorizerInterface[] | $authorizers |
Definition at line 14 of file CompoundAuthorizer.php.
MediaWiki\Rest\BasicAccess\CompoundAuthorizer::__construct | ( | array | $authorizers = [] | ) |
array | $authorizers |
Definition at line 22 of file CompoundAuthorizer.php.
References MediaWiki\Rest\BasicAccess\CompoundAuthorizer\$authorizers.
MediaWiki\Rest\BasicAccess\CompoundAuthorizer::addAuthorizer | ( | BasicAuthorizerInterface | $authorizer | ) |
Adds a BasicAuthorizerInterface to the chain of authorizers.
BasicAuthorizerInterface | $authorizer |
Definition at line 31 of file CompoundAuthorizer.php.
MediaWiki\Rest\BasicAccess\CompoundAuthorizer::authorize | ( | RequestInterface | $request, |
Handler | $handler | ||
) |
Checks all registered authorizers and returns the first encountered error.
RequestInterface | $request | |
Handler | $handler |
Implements MediaWiki\Rest\BasicAccess\BasicAuthorizerInterface.
Definition at line 42 of file CompoundAuthorizer.php.
|
private |
Definition at line 17 of file CompoundAuthorizer.php.
Referenced by MediaWiki\Rest\BasicAccess\CompoundAuthorizer\__construct().