Fix goal of “framework.profiler.only_exceptions“ option which profile on each exceptions on controller (not only 500)
bug #3634 Fix goal of “framework.profiler.only_exceptions“ option which profile on each exceptions on controller (not only 500) (stephpy)

This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #3634).

Discussion
----------

Fix goal of “framework.profiler.only_exceptions“ option which profile on each exceptions on controller (not only 500)

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.*

See https://github.com/symfony/symfony/issues/10375#issuecomment-36628742

Commits
-------

0ea5639 Fix goal of “framework.profiler.only_exceptions“ option which profile on each exceptions on controller (not only 500)