File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,5 +38,15 @@ public function init(
3838 );
3939 $ contribute [Component \Resource \PublicAsset::class] = fn () =>
4040 new Component \Resource \ComponentJS ($ this , "ilMailComposeFunctions.js " );
41+ $ contribute [\ILIAS \Cron \CronJob::class] = static fn () =>
42+ new \ilMailCronNotification (
43+ 'components \\' . self ::class,
44+ $ use [\ILIAS \Language \Language::class]
45+ );
46+ $ contribute [\ILIAS \Cron \CronJob::class] = static fn () =>
47+ new \ilMailCronOrphanedMails (
48+ 'components \\' . self ::class,
49+ $ use [\ILIAS \Language \Language::class]
50+ );
4151 }
4252}
Original file line number Diff line number Diff line change 2828class ilMailCronNotification extends ilCronJob
2929{
3030 private GlobalHttpState $ http ;
31- protected ilLanguage $ lng ;
3231 protected ilSetting $ settings ;
3332 protected bool $ initDone = false ;
3433
@@ -38,7 +37,6 @@ protected function init(): void
3837
3938 if (!$ this ->initDone ) {
4039 $ this ->settings = $ DIC ->settings ();
41- $ this ->lng = $ DIC ->language ();
4240 $ this ->http = $ DIC ->http ();
4341
4442 $ this ->initDone = true ;
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ class ilMailCronOrphanedMails extends ilCronJob
3636{
3737 private GlobalHttpState $ http ;
3838 private Refinery $ refinery ;
39- private ilLanguage $ lng ;
4039 private ilSetting $ settings ;
4140 private ilDBInterface $ db ;
4241 private ilObjUser $ user ;
@@ -49,7 +48,6 @@ private function init(): void
4948
5049 if (!$ this ->initDone ) {
5150 $ this ->settings = $ DIC ->settings ();
52- $ this ->lng = $ DIC ->language ();
5351 $ this ->db = $ DIC ->database ();
5452 $ this ->user = $ DIC ->user ();
5553 $ this ->http = $ DIC ->http ();
Original file line number Diff line number Diff line change 1010 <parent id =" adm" max =" 1" >adm</parent >
1111 </object >
1212 </objects >
13- <crons >
14- <cron id =" mail_notification" class =" ilMailCronNotification" />
15- <cron id =" mail_orphaned_mails" class =" ilMailCronOrphanedMails" />
16- </crons >
1713 <mailtemplates >
1814 <context id =" mail_template_generic" class =" ilMailTemplateGenericContext" />
1915 </mailtemplates >
You can’t perform that action at this time.
0 commit comments