Add global class_alias for Gadget

Used for serialization purposes...

Change-Id: I3345ad668aa55596bc9ec18b56d9891f10bb0285
This commit is contained in:
Reedy 2022-03-06 01:50:36 +00:00
parent 01f6a6c34e
commit 2952dadb9f
2 changed files with 4 additions and 0 deletions

View file

@ -66,7 +66,9 @@
"gadgets-definition"
],
"AutoloadClasses": {
"Gadget": "includes/Gadget.php",
"GadgetRepo": "includes/GadgetRepo.php",
"MediaWiki\\Extension\\Gadgets\\Gadget": "includes/Gadget.php",
"MediaWiki\\Extension\\Gadgets\\GadgetRepo": "includes/GadgetRepo.php"
},
"AutoloadNamespaces": {

View file

@ -417,3 +417,5 @@ class Gadget {
return 'general';
}
}
class_alias( Gadget::class, 'Gadget' );