staffim/StaffimRollbarBundle — pull request #5 by alexeymorozov (2014-05-07 14:53:12+00:00)
Title: Prevent setting error handler on subrequests

Event handler onKernelRequest can be called several times: for main request and subrequests. In that case property "previousErrorHandler" becomes overriden with RollbarListener's handler that causing calling itself endlessly.

Setting error handler at the constructor fixes it.