Documentation

ExceptionHandler
in package

Class ExceptionHandler Handle exceptions from Slim framework

Tags
author

Guillaume ARNOUX

Table of Contents

$container  : Container
$lang  : array<string|int, mixed>
__construct()  : mixed
ExceptionHandler constructor
__invoke()  : Response
Handle exceptions

Properties

$lang

private static array<string|int, mixed> $lang

languages translations array

Methods

__construct()

ExceptionHandler constructor

public __construct(array<string|int, mixed> $lang, Container $container) : mixed
Parameters
$lang : array<string|int, mixed>

languages translations array

$container : Container
Return values
mixed

__invoke()

Handle exceptions

public __invoke(Request $request, Response $response, Exception $exception) : Response
Parameters
$request : Request
$response : Response
$exception : Exception

generated exception

Return values
Response

Response after handling exception

Search results