class HandleErrorsWithView implements MiddlewareInterface

Properties

protected Factory $view
protected LoggerInterface $logger
protected TranslatorInterface $translator
protected SettingsRepositoryInterface $settings

Methods

__construct(Factory $view, LoggerInterface $logger, TranslatorInterface $translator, SettingsRepositoryInterface $settings)

No description

ResponseInterface
process(ServerRequestInterface $request, RequestHandlerInterface $handler)

<p>Catch all errors that happen during further middleware execution.</p>

formatException(Throwable $error)

No description

Details

__construct(Factory $view, LoggerInterface $logger, TranslatorInterface $translator, SettingsRepositoryInterface $settings)

Parameters

Factory $view
LoggerInterface $logger
TranslatorInterface $translator
SettingsRepositoryInterface $settings

ResponseInterface process(ServerRequestInterface $request, RequestHandlerInterface $handler)

<p>Catch all errors that happen during further middleware execution.</p>

Parameters

ServerRequestInterface $request
RequestHandlerInterface $handler

Return Value

ResponseInterface

protected formatException(Throwable $error)

Parameters

Throwable $error