composer require weew/app-error-handler
This is an integration of the weew/error-handler library in to the weew/app framework.
To enable this provider simply register it on the kernel.
$app->getKernel()->addProviders([
ErrorHandlerProvider::class,
]);