composer require weew/app-error-handler-black-hole
This error handler suppresses all occurring errors makes use of the weew/app-error-handler.
To enable this provider simply register it on the kernel.
$app->getKernel()->addProviders([
ErrorHandlingProvider::class,
BlackHoleErrorHandlerProvider::class,
]);
This is how the config might look like in yaml:
black_hole_error_handler:
enabled: true
# or
disabled: false