Merge pull request #201 from silverstripe/pulls/200-use-injector-for-task

MNT Use ::create to allow Injector to replace content review emails sending task
This commit is contained in:
Michal Kleiner 2023-06-16 12:02:44 +12:00 committed by GitHub
commit 9fe83e948d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ class ContentReviewNotificationJob extends AbstractQueuedJob implements QueuedJo
{
$this->queueNextRun();
$task = new ContentReviewEmails();
$task = ContentReviewEmails::create();
$task->run(new HTTPRequest("GET", "/dev/tasks/ContentReviewEmails"));
$this->currentStep = 1;