symfony/symfony — Issue #3472: [Translator][Container] Can not use translation in CLI
Author: vlechemin
Created: 2012-02-29 15:25:47+00:00
State: open

In the file Symfony/Bundle/FrameworkBundle/Translation/Translator line 69, the test $this->container->has('request') is not enought.

While using the translator in the console, i'm getting the error:
You cannot create a service ("request") of an inactive scope ("request").

I think the solution would be to use : isScopeActive instead.