Skip to content

[FEATURE] Cron: Use "Component" mechanisms to gather and register jobs#11392

Open
mjansenDatabay wants to merge 1 commit intoILIAS-eLearning:trunkfrom
mjansenDatabay:feature/12/cron-component-revision
Open

[FEATURE] Cron: Use "Component" mechanisms to gather and register jobs#11392
mjansenDatabay wants to merge 1 commit intoILIAS-eLearning:trunkfrom
mjansenDatabay:feature/12/cron-component-revision

Conversation

@mjansenDatabay
Copy link
Copy Markdown
Contributor

This pull request continues the initiative started by @nhaagen in pull request #8731 to gather and register cron jobs based on the mechanisms of the "Component Revision".

With this PR, cron job implementations will (there are exceptions) no longer have a __construct. Dependencies are initialized in an init method, where class members can be populated by pulling services from the $DIC. This will be necessary as long as our code base is not fully migrated to the "Component" mechanisms.

What this PR also does / Breaking Changes:

  • It removes the \ILIAS\Cron\Job\JobProvider public interface, which helped ILIAS plugins (of any kind) to contribute cron jobs.
  • It removes the \ILIAS\Cron\CronHookPlugin plugin slot

@mjansenDatabay mjansenDatabay self-assigned this Apr 2, 2026
@mjansenDatabay mjansenDatabay added improvement php Pull requests that update Php code labels Apr 2, 2026
@mjansenDatabay mjansenDatabay force-pushed the feature/12/cron-component-revision branch 2 times, most recently from 260b8ce to 3301862 Compare April 2, 2026 13:11
@mjansenDatabay mjansenDatabay changed the title [FEATURE]: Use "Component" mechanisms to gather and register jobs [FEATURE] Cron: Use "Component" mechanisms to gather and register jobs Apr 2, 2026
@mjansenDatabay mjansenDatabay force-pushed the feature/12/cron-component-revision branch from 3301862 to 2279cef Compare April 2, 2026 17:36
Co-authored-by: Nils Haagen <nhaagen@concepts-and-training.de>
@mjansenDatabay mjansenDatabay force-pushed the feature/12/cron-component-revision branch from 2279cef to 0d8bf94 Compare April 2, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant