MailerService
in package
Le service qui gère la configuration de l'envoyer des mails.
Table of Contents
Properties
Methods
- __construct() : mixed
- sendMail() : void
- Méthode d'envoyer classique
- sendPasswordResetEmail() : void
- addFiles() : void
Properties
$mailer read-only
private
MailerInterface
$mailer
$router
private
UrlGeneratorInterface
$router
Methods
__construct()
public
__construct(MailerInterface $mailer, UrlGeneratorInterface $router) : mixed
Parameters
- $mailer : MailerInterface
- $router : UrlGeneratorInterface
sendMail()
Méthode d'envoyer classique
public
sendMail(string $to, string $subject, string $path, array<string|int, mixed> $context[, string|null $cc = null ]) : void
Parameters
- $to : string
- $subject : string
- $path : string
- $context : array<string|int, mixed>
- $cc : string|null = null
Tags
sendPasswordResetEmail()
public
sendPasswordResetEmail(mixed $user, mixed $token) : void
Parameters
- $user : mixed
- $token : mixed
Tags
addFiles()
private
addFiles(mixed $files, TemplatedEmail $message) : void
Parameters
- $files : mixed
- $message : TemplatedEmail