title: Submitting symfony register controller fosuserbundle does not work
body: <p>I tried to follow this tutorial to override default controller of fos user bundle  [Overriding Default FOSUserBundle Controllers][1]</p>
  
  <p>And i can change controller but when  I try to submit button it doesn't work: </p>
  
  <pre><code>&lt;?php
  // src/AppBundle/Controller/RegistrationController.php
  
  namespace AppBundle\Controller;
  
  use Symfony\Component\HttpFoundation\RedirectResponse;
  use FOS\UserBundle\Controller\RegistrationController as BaseController;
  use Symfony\Component\HttpFoundation\Request;
  
  class RegistrationController extends BaseController
  {
      public function registerAction(Request $request)
      {
          /** @var $formFactory FactoryInterface */
          $formFactory = $this-&gt;get('fos_user.registration.form.factory');
          /** @var $userManager UserManagerInterface */
          $userManager = $this-&gt;get('fos_user.user_manager');
          /** @var $dispatcher EventDispatcherInterface */
          $dispatcher = $this-&gt;get('event_dispatcher');
  
          $user = $userManager-&gt;createUser();
          $user-&gt;setEnabled(true);
  
          $event = new GetResponseUserEvent($user, $request);
          $dispatcher-&gt;dispatch(FOSUserEvents::REGISTRATION_INITIALIZE, $event);
   var_dump('prova');
  
          if (null !== $event-&gt;getResponse()) {
              return $event-&gt;getResponse();
          }
  
      $form = $this-&gt;createForm(RegistrationType::class, $user, [
      'method' =&gt; 'POST',
  ]);
  
      //$form = $formFactory-&gt;createForm();
      //$form-&gt;setData($user);
  
      $form-&gt;handleRequest($request);
  
      if ($form-&gt;isSubmitted()) {
          var_dump($form);
          if ($form-&gt;isValid()) {
             var_dump($form);
                }
          }
  
          return $this-&gt;render('@FOSUser/Registration/register.html.twig', array(
              'form' =&gt; $form-&gt;createView(),
          ));
      }
  }
  </code></pre>
  
  <p>The var_dump before the submit work but the var_dump inside  </p>
  
  <pre><code>if ($form-&gt;isSubmitted()) {
              if ($form-&gt;isValid()) {
  </code></pre>
  
  <p>doesn't work . I believe that submit logic is in another code but i don't understand how I can change it.</p>
  
  <p>I  don't understand how it's possible. Please help  me ?</p>