/**
* Setup how the exception handler works.
*/
class Exceptions extends BaseConfig
{
...
public function handler(int $statusCode, Throwable $exception): ExceptionHandlerInterface
{
InspectorExceptionHandler::handle($statusCode, $exception);
return new ExceptionHandler($this);
}
}
class Filters extends BaseFilters
{
/**
* List of filter aliases that are always
* applied before and after every request.
*
* @var array
*/
public array $globals = [
'before' => [
...,
'inspector',
],
'after' => [
...,
'inspector',
],
];
}