KMP PHP API Reference

ApiAwareRedirectHandler extends RedirectHandler
in package

Re-throws authorization exceptions for API routes so that ApiExceptionRenderer returns JSON; redirects all other routes.

Table of Contents

Methods

handle()  : ResponseInterface

Methods

handle()

public handle(Exception $exception, ServerRequestInterface $request[, array<string|int, mixed> $options = [] ]) : ResponseInterface
Parameters
$exception : Exception
$request : ServerRequestInterface
$options : array<string|int, mixed> = []
Tags
inheritDoc
Return values
ResponseInterface

        
On this page

Search results