Skip to content

Commit 98ec845

Browse files
committed
Allow adding helpers.
1 parent e5d5fbc commit 98ec845

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Queue/Task/EmailTask.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ public function run(array $data, int $jobId): void {
202202

203203
continue;
204204
}
205+
if (in_array($method, ['helper', 'helpers'], true)) {
206+
$setter = 'add' . ucfirst($method);
207+
call_user_func_array([$this->mailer->viewBuilder(), $setter], (array)$setting);
208+
209+
continue;
210+
}
205211

206212
call_user_func_array([$this->mailer, $setter], (array)$setting);
207213
}

0 commit comments

Comments
 (0)