sonata-project/SonataIntlBundle — pull request #42 by mediashowroom (2013-04-22 10:02:48+00:00)
Title: Don't access "request"-scope when it is not active.

While using the IntlBundle within Symfony console commands, I received errors saying that the "request"-scope can't be accessed. To avoid these errors I inserted an isScopeActive() call in RequestDetector->getLocale().