On the other hand, if you are creating more traditional application with HTML rendered on the server and some interactions enhanced by jQuery, you may not notice that you've broken it. The browser reports the error into the Developer Console, but if you don't have it open, you are out of luck.
How does it work?
The Bundle works automatically with zero configuration. You only have to install it through Composer and register in
AppKernel.php (see README for instructions).
<head> section of the response (similarly to Symfony WebDebugToolbar). By default, the listener is registered only when the
%kernel.debug% is set to
true, so the error alert won't be ever displayed to your end users. The configuration cab be changed if necessary - e.g. you may want to have enabled also at the staging server.
I know that the bundle is very simple. I wanted to experiment with what it takes to create a proper Bundle, before I work on something more complicated. One of the challenging things was the automatic testing of the container extension (it contains the logic for registering the listener). Luckily, there is SymfonyDependencyInjectionTest library created by Matthias Noback which makes container extension testing a breeze.
If you have time to dive into the bundle code, can you spot something that can I improve?