public function __construct(\FOS\UserBundle\Mailer\MailerInterface $mailer, \FOS\UserBundle\Util\TokenGeneratorInterface $tokenGenerator, \Symfony\Component\Routing\Generator\UrlGeneratorInterface $router, \Symfony\Component\HttpFoundation\Session\SessionInterface $session) { parent::__construct($mailer, $tokenGenerator, $router, $session); $this->tokenGenerator = $tokenGenerator; $this->mailer = $mailer; $this->session = $session; }