title: In FOSUserBundle, How to initially set user role on REGISTRATION_COMPLETED event?
body: <p>I'm trying to give each successfully registered user a <code>ROLE_USER</code> role. I'm new to FOSUserBundle, So from what I've read in the documentation, It's done by hocking logic into the controllers.</p>
  
  <p>Here's my <code>NewUserGroupSet</code> Event listener:</p>
  
  <pre><code>&lt;?php
  namespace Tsk\TstBundle\EventListener;
  
  use Doctrine\ODM\MongoDB\DocumentManager;
  use FOS\UserBundle\Doctrine\UserManager;
  use FOS\UserBundle\Event\FilterUserResponseEvent;
  use FOS\UserBundle\FOSUserEvents;
  use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  
  class NewUserGroupSet implements EventSubscriberInterface
  {
      protected $um;
      protected $dm;
      public function __construct(UserManager $um, DocumentManager $dm)
      {
          $this-&gt;um = $um;
          $this-&gt;dm = $dm;
      }
  
      public static function getSubscribedEvents()
      {
          return array(
              FOSUserEvents::REGISTRATION_COMPLETED =&gt; "onRegistrationSuccess",
          );
      }
  
      public function onRegistrationSuccess(FilterUserResponseEvent $event)
      {
          $user = $event-&gt;getUser();
          $user-&gt;setRoles(array('ROLE_USER'));
          $this-&gt;um-&gt;updateUser($user);
          $this-&gt;dm-&gt;flush();
      }
  }
  ?&gt;
  </code></pre>
  
  <p>And is registered as a service as follows: </p>
  
  <pre><code>parameters:
      tsk_user.group_set.class: Tsk\TstBundle\EventListener\NewUserGroupSet
  
  services:
      tsk_user.group_set:
          class: %tsk_user.group_set.class%
          arguments: [@fos_user.user_manager, @doctrine.odm.mongodb.document_manager]
          tags:
              - { name: kernel.event_subscriber }
  </code></pre>
  
  <p>But when I register a new user, Nothing happens. No roles is being set whatsoever.</p>
  
  <p>Any help would be appreciated.</p>