FOSUserBundle : Redirect the user after register with EventListener
To accomplish what you want, you should use FOSUserEvents::REGISTRATION_CONFIRM instead of FOSUserEvents::REGISTRATION_CONFIRMED. You then have to rewrite rewrite your class RegistrationConfirmedListener like: class RegistrationConfirmListener implements EventSubscriberInterface { private $router; public function __construct(UrlGeneratorInterface $router) { $this->router = $router; } /** * {@inheritDoc} */ public static function getSubscribedEvents() { return array( FOSUserEvents::REGISTRATION_CONFIRM => ‘onRegistrationConfirm’ ); } public … Read more