talentrydev / error-handling-bundle
Symfony bundle for converting PHP errors to exceptions
4.0.0
2024-06-14 14:45 UTC
Requires
- php: ^8.3
- symfony/console: ^6.3
- symfony/framework-bundle: ^6.3
- symfony/http-kernel: ^6.3
- symfony/yaml: ^6.3
- talentrydev/error-handling: ^3.0.0
Requires (Dev)
- phpunit/phpunit: ^11
- squizlabs/php_codesniffer: ^3.7
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