title: Apply class to Symfony2 Form Label
body: <p>I'm attempting to set the class on a class on a form label using php templates.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;?php echo $view['form']-&gt;label($form['first_name'], 'First Name', array(
      'attr' =&gt; array('class' =&gt; 'control-label')
  )) ?&gt;
  </code></pre>
  
  <p>But here's my output:</p>
  
  <pre><code>&lt;label class="required" for="form_first_name"&gt;First name&lt;/label&gt;
  </code></pre>
  
  <p>I can find how to do it using twig, but not an example with PHP.</p>