AuthorizationChecker
in package
implements
AuthorizationCheckerInterface
FinalYes
Determines if authorization is successful for a given request processor.
Table of Contents
Interfaces
- AuthorizationCheckerInterface
- 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 $routable, ServerRequestInterface $request) : RequestProcessorInterface|ResponseInterface
Parameters
- $routable : RequestProcessorInterface
- $request : ServerRequestInterface