talentrydev / error-handling-bundle
Symfony bundle for converting PHP errors to exceptions
3.0.0
2023-06-16 07:51 UTC
Requires
- php: ^7.4 || ^8.0
- symfony/console: ^6.3
- symfony/framework-bundle: ^6.3
- symfony/http-kernel: ^6.3
- symfony/yaml: ^6.3
- talentrydev/error-handling: ^2.1.0
Requires (Dev)
- phpunit/phpunit: ^8.4
- squizlabs/php_codesniffer: ^3.5
- symfony/monolog-bundle: ^3.4
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