RequestAuthorizer
in package
implements RequestAuthorizerInterface

Read onlyYes
FinalYes

Determines if authorization is successful for a given request processor.

Table of Contents

Interfaces

RequestAuthorizerInterface
Determines if authorization is successful for a given request processor.

Methods

__construct()  : mixed
authorize()  : RequestProcessorInterface|ResponseInterface
Returns request processor when authorization is successful and an Unauthorized HTTP response when it is not.

Methods

__construct()

public __construct(RequestProcessorResolverInterface $routableResolver, RequestHandlerInterface $unauthHandler) : mixed
Parameters
$routableResolver : RequestProcessorResolverInterface
$unauthHandler : RequestHandlerInterface

authorize()

Returns request processor when authorization is successful and an Unauthorized HTTP response when it is not.

public authorize(RequestProcessorInterface $requestProcessor, ServerRequestInterface $request) : RequestProcessorInterface|ResponseInterface
Parameters
$requestProcessor : RequestProcessorInterface
$request : ServerRequestInterface
Return values
RequestProcessorInterface|ResponseInterface

        
On this page

Search results