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