Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add after_config callback for older Moodle versions #373

Merged
merged 2 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@ function tool_excimer_before_session_start() {
$manager = manager::get_instance();
}

/**
* After config
*
* This is a legacy callback that is used for compatibility with older Moodle versions.
* Moodle 4.5+ will use tool_excimer\local\hooks\after_config::callback instead.
*
* @return void|null
*/
function tool_excimer_after_config(): void {
// Start processor.
$manager = manager::get_instance();
$manager->start_processor();
}

/**
* Hook to obtain a list of perfomence checks supplied by the plugin.
*
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2024110100;
$plugin->version = 2024110101;
$plugin->release = 2024110100;
$plugin->requires = 2023100900; // Moodle 4.3.
$plugin->supported = [403, 405];
Expand Down
Loading