title: Injecting Translator service to FormType
body: <p>I'm trying to find a the most reusable working option for being able to translate from a FormType. </p>
  
  <p><strong>My first option</strong> is to declare a service specifically for each FormType this way:</p>
  
  <p>services.yml</p>
  
  <pre><code>form.enquiry:
      class: Acme\DemoBundle\Form\EnquiryType
      arguments: [@translator]
  </code></pre>
  
  <p>EnquiryType.php</p>
  
  <pre><code>use Symfony\Component\Translation\Translator;
  class EnquiryType extends AbstractType {
  
      public $translator;
      public function __construct(Translator $translator=null)
      {
          $this-&gt;translator = $translator;
      }
  
  public function buildForm(FormBuilderInterface $builder, array $options) {
      $tr= $this-&gt;translator;
      $msg=$tr-&gt;trans('default_error');
      $builder-&gt;add ...
  </code></pre>
  
  <p>MyController.php</p>
  
  <pre><code> $form = $this-&gt;container-&gt;get('form.enquiry')-&gt;create();
   return $this-&gt;render('AcmeDemoBundle:Home:index.html.twig', array(
       'form' =&gt; $form-&gt;createView()
   ));
  </code></pre>
  
  <p>gives this error</p>
  
  <blockquote>
    <p>FatalErrorException: Error: Call to undefined method Acme\DemoBundle\Form\EnquiryType::create() </p>
  </blockquote>
  
  <p>I'd like to know how to solve it by changing the code or even better finding a better option that allows me to inject the translator service to any FormType without needing to declare each FormType service individually.</p>