File tree Expand file tree Collapse file tree
components/ILIAS/MetaData Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,5 +42,13 @@ public function init(
4242
4343 $ contribute [Component \Resource \PublicAsset::class] = fn () =>
4444 new Component \Resource \Endpoint ($ this , "oai.php " );
45+
46+ $ contribute [\ILIAS \Cron \CronJob::class] = static fn () =>
47+ new \ilCronOerHarvester (
48+ self ::class,
49+ $ use [\ILIAS \Language \Language::class],
50+ $ use [\ILIAS \Logging \LoggerFactory::class]
51+ );
52+
4553 }
4654}
Original file line number Diff line number Diff line change @@ -33,18 +33,15 @@ class ilCronOerHarvester extends ilCronJob
3333 protected const DEFAULT_SCHEDULE_VALUE = 1 ;
3434
3535 private ilLogger $ logger ;
36- private ilLanguage $ lng ;
3736 private Initiator $ initiator ;
3837 private SettingsInterface $ settings ;
3938
40- public function __construct ()
39+ public function init (): void
4140 {
42- global $ DIC ;
43-
44- $ this ->logger = $ DIC ->logger ()->meta ();
45- $ this ->lng = $ DIC ->language ();
4641 $ this ->lng ->loadLanguageModule ('meta ' );
42+ $ this ->logger = $ this ->logger_factory ->getLogger ('meta ' );
4743
44+ global $ DIC ;
4845 $ this ->initiator = new Initiator ($ DIC );
4946 $ this ->settings = $ this ->initiator ->settings ();
5047 }
Original file line number Diff line number Diff line change 99 <parent id =" adm" max =" 1" >adm</parent >
1010 </object >
1111 </objects >
12- <crons >
13- <cron id =" meta_oer_harvester" class =" ilCronOerHarvester" />
14- </crons >
1512 <logging />
1613</service >
You can’t perform that action at this time.
0 commit comments