I need to render documents in different languages. Therefore I used to use the following code:
use Symfony\\Component\\Translation\\TranslatorInterface; .... $t