MDL-81960 core: Update namespace of progress_trace classes

This commit is contained in:
Andrew Nicols
2024-06-27 11:35:37 +08:00
parent a9869ff0a7
commit b6d08ad1d7
9 changed files with 96 additions and 4 deletions
@@ -14,6 +14,10 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
namespace core\output\progress_trace;
use core\output\progress_trace;
/**
* Special type of trace that can be used for redirecting to multiple other traces.
*
@@ -21,7 +25,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @package core
*/
class combined_progress_trace extends progress_trace {
class combined_progress_trace extends \progress_trace {
/**
* Constructs a new instance.
*
@@ -50,3 +54,8 @@ class combined_progress_trace extends progress_trace {
}
}
}
// Alias this class to the old name.
// This file will be autoloaded by the legacyclasses autoload system.
// In future all uses of this class will be corrected and the legacy references will be removed.
class_alias(combined_progress_trace::class, \combined_progress_trace::class);