mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 01:56:27 +08:00
chore: merge blocksuite source code (#9213)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { LifeCycleWatcher } from '../extension/index.js';
|
||||
import { BlockServiceIdentifier } from '../identifier.js';
|
||||
|
||||
export class ServiceManager extends LifeCycleWatcher {
|
||||
static override readonly key = 'serviceManager';
|
||||
|
||||
override mounted() {
|
||||
super.mounted();
|
||||
|
||||
this.std.provider.getAll(BlockServiceIdentifier).forEach(service => {
|
||||
service.mounted();
|
||||
});
|
||||
}
|
||||
|
||||
override unmounted() {
|
||||
super.unmounted();
|
||||
|
||||
this.std.provider.getAll(BlockServiceIdentifier).forEach(service => {
|
||||
service.unmounted();
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user