Skip to content

Commit

Permalink
Cron: update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nhaagen committed Jan 3, 2025
1 parent 1bc18e4 commit 87dce32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/ILIAS/Cron/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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],
);
}
}
Expand All @@ -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

Expand Down

0 comments on commit 87dce32

Please sign in to comment.