fix(mail): fix example
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
01b94093e6
commit
f54e10ede3
1 changed files with 1 additions and 4 deletions
|
|
@ -33,10 +33,7 @@ public function foo(MailNotifier $notifier, UserRepositoryQuery $query)
|
|||
->init()
|
||||
->setSubject('Your bill')
|
||||
->addRecipient('john.doe@example.com')
|
||||
->addRecipients(array_map(
|
||||
fn($u) => $u->getEmail(),
|
||||
$query->create()->where('.isAdmin = true')->find()
|
||||
), true)
|
||||
->addRecipients($query->create()->where('.isAdmin = true')->find(), true)
|
||||
->addAttachment('path/to/bill.pdf')
|
||||
->notify('mail/bill.html.twig', [
|
||||
// view params
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue