yiisoft/yii — pull request #1784 by cebe (2012-11-30 15:46:28+00:00)
Title: better fix for #835

issue #835
reverts fix introduced with 5b28c6ab0081d274e2e2d506fe167c7d56e749a9

as onEndRequest will fire event only once I added app->end() method as
shutdown function to make sure onEndRequest gets called in any case.
If application called it before shutdown function has no effect.