public function __construct(User $user, Profile $profile) { parent::__construct($user); $this->profile = $profile; }
public function __construct(User $user, Registration $registration) { parent::__construct($user); $this->registration = $registration; }
public function onResetPassword(UserEvent $event) { $user = $event->getUser(); $this->mailer->resetPasswordMail($user); }