simplethings/SimpleThingsFormExtraBundle — comment on commit fa0759be7f0061125e16d66715cf1868747b6613
File: Service/JsValidationConstraintsGenerator.php line 67
By DavidBadura:

yes, the problem is, i use this service in GenerateJsValidationConstraintsCommand and the symfony frameworkbundle extends the translator to implement this code:

``` php
public function getLocale()
{
if (null === $this->locale && $this->container->has('request')) {
$this->locale = $this->container->get('request')->getLocale();
}

return $this->locale;
}
```

But if you execute a command then you have not a request and you get an exception. I must set locale by calling setLocal method or as an optional paramater by calling trans method.