Trait UnauthorizedHandlerTrait
Namespace: Authorization\Middleware\UnauthorizedHandler
Method Summary
-
handleException() protected
Handle exception.
Method Detail
handleException() ΒΆ protected
handleException(Authorization\Exception\Exception $exception, Psr\Http\Message\ServerRequestInterface $request, array|string $handler): Psr\Http\Message\ResponseInterface
Handle exception.
Parameters
-
Authorization\Exception\Exception
$exception Exception to handle.
-
Psr\Http\Message\ServerRequestInterface
$request Request instance.
-
array|string
$handler Handler config.
Returns
Psr\Http\Message\ResponseInterface