symfony-plugins

sfErrorNotifierPlugin on symfony task

你。 提交于 2020-01-14 04:03:08
问题 My application runs huge batch processing inside a Symfony task, and I want to be notified about all PHP errors and uncaught exceptions. So I tried sfErrorNotifierPlugin, and it works great in a web context (accessing the application from the browser); the problem is that I can't make it work on my symfony tasks. Is there any way to make it work in tasks? 回答1: sfTask has no exception handling like the web interface does, but you can work around it: ultimately exceptions thrown are passed to