schmittjoh/JMSDebuggingBundle — pull request #63 by TomAdam (2012-12-02 02:38:20+00:00)
Title: Fix exception on no firewall listeners

If a redirect is triggered before the firewall has started up the security collector causes a warning due to there being no firewall listeners. I think the reason this hasn't been picked up to this point is that it isn't a very common use case, however it does occur with the Nelmio Security Bundle.

`$this->firewall->getListeners()` returns null if the firewall has not yet started, resulting in a warning:

`Warning: Invalid argument supplied for foreach()`

This patch prevents the issue.