talentrydev/error-handling-bundle

Symfony bundle for converting PHP errors to exceptions

4.0.0 2024-06-14 14:45 UTC

This package is auto-updated.

Last update: 2024-12-14 15:52:42 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