by sajed zarinpour.
I think the docs need an update. I was able to get this right by going through the original externallib file located in "moodle/lib/external/externallib.php". One can see that the use clauses are changed to
use core_external\external_api;
use core_external\external_function_parameters;
use core_external\external_multiple_structure;
use core_external\external_single_structure;
use core_external\external_value;
and the service should extends external_api
Thanks.
use core_external\external_api;
use core_external\external_function_parameters;
use core_external\external_multiple_structure;
use core_external\external_single_structure;
use core_external\external_value;
and the service should extends external_api
Thanks.