mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
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:
commit
9fe83e948d
@ -93,7 +93,7 @@ class ContentReviewNotificationJob extends AbstractQueuedJob implements QueuedJo
|
|||||||
{
|
{
|
||||||
$this->queueNextRun();
|
$this->queueNextRun();
|
||||||
|
|
||||||
$task = new ContentReviewEmails();
|
$task = ContentReviewEmails::create();
|
||||||
$task->run(new HTTPRequest("GET", "/dev/tasks/ContentReviewEmails"));
|
$task->run(new HTTPRequest("GET", "/dev/tasks/ContentReviewEmails"));
|
||||||
|
|
||||||
$this->currentStep = 1;
|
$this->currentStep = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user