From 87dce32d90f91eff84ffb7a2f131f30960f1cd34 Mon Sep 17 00:00:00 2001 From: Nils Haagen Date: Fri, 3 Jan 2025 09:28:08 +0100 Subject: [PATCH] Cron: update Readme --- components/ILIAS/Cron/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/ILIAS/Cron/README.md b/components/ILIAS/Cron/README.md index 4eead8c1edae..1d33755f309c 100755 --- a/components/ILIAS/Cron/README.md +++ b/components/ILIAS/Cron/README.md @@ -43,7 +43,8 @@ class MyComponent implements Component\Component $contribute[\ILIAS\Cron\CronJob::class] = static fn() => new \MyComponentCronJob( self::class, - $use[\ILIAS\Language\Language::class] + $use[\ILIAS\Language\Language::class], + $use[\ILIAS\Logging\LoggerFactory::class], ); } } @@ -66,6 +67,7 @@ Several abstract methods have to be implemented to make a new cron-job usable: - `getDefaultScheduleType()`: see Schedule - `getDefaultScheduleValue()`: see Schedule - `run()`: process the cron-job +- `init()`: called in ilCronJobEntity; may be used to initialize further dependencies ### ilCronJobResult