MDL-80275 core: Move disable_output_buffering to setup.php

This method is the only reason stopping lib/setuplib.php from being
included after the autoloader and it is single-purposed.
This commit is contained in:
Andrew Nicols
2024-05-18 21:03:54 +08:00
parent a15301b69b
commit 4cbc81c7ea
3 changed files with 41 additions and 39 deletions
+8
View File
@@ -3216,3 +3216,11 @@ function question_fix_top_names() {
function search_generate_text_SQL() {
\core\deprecation::emit_deprecation_if_present(__FUNCTION__);
}
/**
* @deprecated Since Moodle 4.5
*/
#[\core\attribute\deprecated('This method should not be used', since: '4.5', mdl: 'MDL-80275', final: true)]
function disable_output_buffering(): void {
\core\deprecation::emit_deprecation_if_present(__FUNCTION__);
}