title: Symfony 3 form - what is ::class and where is name?
body: <p>What does the <strong>::class</strong> used in the forms Symfony 3?</p>
  
  <p>For example:</p>
  
  <pre><code>-&gt;add('task', TextType::class)
  </code></pre>
  
  <p>or</p>
  
  <pre><code>$form = $this-&gt;createForm(TaskType::class, $task);
  </code></pre>
  
  <p>Where can I read about the method <strong>::class</strong>?</p>
  
  <p>In Symfony2 was:</p>
  
  <pre><code>public function getName()
  {
      return 'appbundle_task';
  }
  </code></pre>
  
  <p>And next in view I had prefix, for example:</p>
  
  <pre><code>&lt;input id="appbundle_task_name" type="text" name="appbundle_task[name]"&gt;
  </code></pre>
  
  <p>What it is now the principle of generating names in inputs?</p>