title: overriding registration FOSUserBundle Symfony2
body: <p>I am trying to override Registration Form in FOSUserBundle but i get this error:
  i have followed this tutorial in the official documentation:
  <a href="https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Resources/doc/overriding_forms.md" rel="nofollow">Link</a></p>
  
  <pre><code>Could not load type "uae_user_registration"
  </code></pre>
  
  <p>My files are:
  services.yml</p>
  
  <pre><code># src/Uae/UserBundle/Resources/config/services.yml 
  services:
      uae_user.registration.form.type:
          class: Uae\UserBundle\Form\Type\RegistrationFormType
          arguments: [%fos_user.model.user.class%]
          tags:
          - { name: form.type, alias: uae_user_registration }
  </code></pre>
  
  <p>config.yml:</p>
  
  <h1>app/config/config.yml</h1>
  
  <pre><code>fos_user:
      db_driver:     orm                         
      firewall_name: main                       
      user_class:    Uae\UserBundle\Entity\User 
      registration:
              form:
                  type: uae_user_registration
  </code></pre>
  
  <p>RegistrationFormType: </p>
  
  <pre><code>&lt;?php
  #src/Uae/UserBundle/Form/Type/RegistrationType.php
  
  namespace Uae\UserBundle\Form\Type;
  
  use Symfony\Component\Form\FormBuilderInterface;
  use FOS\UserBundle\Form\Type\RegistrationFormType as BaseType;
  
  class RegistrationFormType extends BaseType
  {
  public function buildForm(FormBuilderInterface $builder, array $options)
  {
      parent::buildForm($builder, $options);
  
      // add your custom field
      $builder-&gt;add('nom');
      $builder-&gt;add('prenom');
  }
  
  public function getName()
  {
      return 'uae_user_registration';
  }
  }
  </code></pre>