talentrydev/error-handling-bundle

Symfony bundle for converting PHP errors to exceptions

3.0.0 2023-06-16 07:51 UTC

This package is auto-updated.

Last update: 2024-05-16 09:52:01 UTC


README

This Symfony bundle encapsulates the error-handling library. Compatible with Symfony versions 3 and 4.

Installing and configuring the symfony bundle

  • Run:
composer require talentrydev/error-handling-bundle
  • Add the ErrorHandlingBundle to your kernel's registerBundles method:
return [
    //...
    new \Talentry\ErrorHandlingBundle\ErrorHandlingBundle();
];
  • Configure the bundle to automatically start error handling on kernel.request and console.command events:
error_handling:
    auto_start: true