/** * Create a new RegisterController instance. * * @param UserMailer $mailer */ public function __construct(UserMailer $mailer) { parent::__construct(); $this->mailer = $mailer; }
/** * Create a new ForgotPasswordController instance. * * @param UserMailer $mailer * @param TokenRepositoryInterface $tokens */ public function __construct(UserMailer $mailer, TokenRepositoryInterface $tokens) { parent::__construct(); $this->mailer = $mailer; $this->tokens = $tokens; }