feature/add-attachments #2

Manually merged
Thifaine merged 12 commits from feature/add-attachments into master 2020-06-09 16:20:07 +02:00
1 changed files with 4 additions and 1 deletions
Showing only changes of commit 7a98f99840 - Show all commits

View File

@ -149,7 +149,10 @@ class BluescaleMailTemplate implements \JsonSerializable
*/
public function attachments(array $attachments): BluescaleMailTemplate
{
$this->attachments = $attachments;
foreach ($attachments as $attachment) {
$this->addAttachment($attachment['path'] ?? $attachment['file'], $attachment['filename'] ?? null);
}
return $this;
}