diff --git a/.upgradenotes/MDL-80491-2024110610002429.yml b/.upgradenotes/MDL-80491-2024110610002429.yml new file mode 100644 index 00000000000..91aa22344e6 --- /dev/null +++ b/.upgradenotes/MDL-80491-2024110610002429.yml @@ -0,0 +1,5 @@ +issueNumber: MDL-80491 +notes: + core_enrol: + - message: Final removal of base `enrol_plugin` class method `update_communication` + type: removed diff --git a/lib/enrollib.php b/lib/enrollib.php index 45a2cbf2436..f3d25f3c177 100644 --- a/lib/enrollib.php +++ b/lib/enrollib.php @@ -2740,25 +2740,11 @@ abstract class enrol_plugin { } /** - * Update instance members. - * - * Update communication room membership for an instance action being performed. - * - * @param int $enrolmentinstanceid ID of the enrolment instance - * @param string $action The update action being performed - * @param stdClass $course The course object - * @return void * @deprecated Since Moodle 4.4.0. - * @see \core_communication\hook_listener::update_communication_memberships_for_enrol_status_change() - * @todo MDL-80491 Final deprecation in Moodle 4.8. - * */ - public function update_communication(int $enrolmentinstanceid, string $action, stdClass $course): void { - debugging('Use of method update_communication is deprecated. This feature has been moved to - core_communication as a part of hooks api implementation so that plugins or core does not need to call this method anymore. - Method update_communication_memberships_for_enrol_status_change method in communication/classes/hook_listener.php - now handles all the operations related to this method using hooks callback recorded in lib/db/hooks.php.', DEBUG_DEVELOPER); - return; + #[\core\attribute\deprecated(null, reason: 'Replaced with hooks', since: '4.4', mdl: 'MDL-78551', final: true)] + public function update_communication(): void { + \core\deprecation::emit_deprecation_if_present([self::class, __FUNCTION__]); } /**