Directly use JobList service from container

This commit is contained in:
Joas Schilling 2015-02-05 11:50:03 +01:00
Родитель 2964d21ccc
Коммит ea896ca9cb
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -43,6 +43,6 @@ $c->getServer()->getNavigationManager()->add($navigationEntry);
// Personal settings for notifications and emails
\OCP\App::registerPersonal($c->getAppName(), 'personal');
// Cron job for sending Emails
\OCP\Backgroundjob::registerJob('OCA\Activity\BackgroundJob\EmailNotification');
\OCP\Backgroundjob::registerJob('OCA\Activity\BackgroundJob\ExpireActivities');
// Cron job for sending emails and pruning the activity list
$c->getServer()->getJobList()->add('OCA\Activity\BackgroundJob\EmailNotification');
$c->getServer()->getJobList()->add('OCA\Activity\BackgroundJob\ExpireActivities');