Create a new table for stats notification

[MAILPOET-1571]
This commit is contained in:
Pavel Dohnal
2018-12-11 13:23:28 +01:00
parent 423341abb0
commit 9080b5260e
4 changed files with 36 additions and 1 deletions

View File

@@ -6,7 +6,18 @@ use Carbon\Carbon;
use MailPoet\Models\SendingQueue;
use MailPoet\Models\ScheduledTask;
use MailPoet\Models\Setting;
use MailPoet\Tasks\Sending;
/**
* TODO:
* - finish stats_notifications table, test if it is working and the migration is creating the table
* - remove all the SendingQueue from here
* - in schedule method add a row to stats_notifications table
* - when sending of post notification or a standard newsletter is finished call schedule
* - add processing of this task to Daemon
* - check JIRA what to do next and how to send the newsletter
* - see \MailPoet\Subscribers\NewSubscriberNotificationMailer how to send an email, now with DI everything should be easy
*/
class StatsNotifications {