In symfony 2.3 it was this line in service.yml to get to the translator
In service.yml
arguments: [@translator,....
in serviceFunctions.php
public function __construct(Translator $translator,...) {
$this->translator = $translator;
Now I get the error:
must be an instance of Symfony\Component\Translation\Translator, instance of Symfony\Component\Translation\DataCollectorTranslator given
How can I get to the service in 2.7 in dev also in production mode?