chore: 移除 autowire

This commit is contained in:
xiaojunnuo
2025-04-28 23:34:08 +08:00
parent 0b6941d5ce
commit f2d6c3ad83
17 changed files with 116 additions and 106 deletions
@@ -65,7 +65,7 @@ export class Registry<T = any> {
}
getDefineList() {
const list = [];
let list = [];
for (const key in this.storage) {
const define = this.getDefine(key);
if (define) {
@@ -78,6 +78,10 @@ export class Registry<T = any> {
list.push({ ...define, key });
}
}
list = list.sort((a, b) => {
return (a.order ?? 10) - (b?.order ?? 10);
});
return list;
}