From 02f4a06897e51b1441d23dc610a82e48c839cc47 Mon Sep 17 00:00:00 2001 From: fap <459631+fapdash@users.noreply.github.com> Date: Sat, 10 May 2025 11:56:40 +0200 Subject: [PATCH] [docs] Fix imports in External Services examples These functions have been renamed in Moodle 4.2. See - https://web.archive.org/web/20241102043138/https://moodledev.io/docs/4.2/devupdate#external-api - https://672834180938720008adb671--moodledevdocs.netlify.app/docs/4.2/devupdate#renamed-external-api-classes - https://moodle.org/mod/forum/discuss.php?d=457297 --- docs/apis/subsystems/external/functions.md | 8 ++++---- docs/apis/subsystems/external/writing-a-service.md | 8 ++++---- .../version-4.4/apis/subsystems/external/functions.md | 8 ++++---- .../apis/subsystems/external/writing-a-service.md | 8 ++++---- .../version-4.5/apis/subsystems/external/functions.md | 8 ++++---- .../apis/subsystems/external/writing-a-service.md | 8 ++++---- .../version-5.0/apis/subsystems/external/functions.md | 8 ++++---- .../apis/subsystems/external/writing-a-service.md | 8 ++++---- 8 files changed, 32 insertions(+), 32 deletions(-) diff --git a/docs/apis/subsystems/external/functions.md b/docs/apis/subsystems/external/functions.md index 63853fcb10..f59dc32c82 100644 --- a/docs/apis/subsystems/external/functions.md +++ b/docs/apis/subsystems/external/functions.md @@ -60,10 +60,10 @@ Please note that deprecation notices will be added to this pathway from Moodle 4 namespace local_groupmanager\external; -use external_function_parameters; -use external_multiple_structure; -use external_single_structure; -use external_value; +use core_external\external_function_parameters; +use core_external\external_multiple_structure; +use core_external\external_single_structure; +use core_external\external_value; class create_groups extends \core_external\external_api { public static function execute_parameters(): external_function_parameters { diff --git a/docs/apis/subsystems/external/writing-a-service.md b/docs/apis/subsystems/external/writing-a-service.md index 57a116c24e..83c261a82d 100644 --- a/docs/apis/subsystems/external/writing-a-service.md +++ b/docs/apis/subsystems/external/writing-a-service.md @@ -145,10 +145,10 @@ This will be located in the file `local/groupmanager/classes/external/create_gro