title: Adding classes to all form widgets in symfony
body: <p>I am trying to find a better way to assign classes to form elements in symfony. Currently, I can't seem to get away from assigning each one manually. ie:</p>
  
  <pre><code>$this-&gt;widgetSchema['title']-&gt;setAttribute("class","fieldInput");
  $this-&gt;widgetSchema['tag_line']-&gt;setAttribute("class","fieldInput");
  $this-&gt;widgetSchema['description']-&gt;setAttribute("class","fieldInput");
  // etc
  </code></pre>
  
  <p>Things I tried without success</p>
  
  <p>1) looping through $this->widgetSchema, treating it as an array and setting attributes to each key</p>
  
  <p>2) $this->widgetSchema->setAttribute()   but this only applied the class to the label that was generated, not the form element</p>
  
  <p>There must be a way to hit all the fields without specifically directing them?</p>
  
  <p>Can anyone point me in the right direction?</p>