docs: Document context method in module interface (#18967)

This commit is contained in:
Iván Ovejero
2025-09-01 17:36:16 +02:00
committed by GitHub
parent 26a3c1ff91
commit 897c55aefe
2 changed files with 13 additions and 0 deletions

View File

@@ -23,4 +23,10 @@ export class MyFeatureModule implements ModuleInterface {
return [MyFeatureEntity];
}
async context() {
const { MyFeatureService } = await import('./my-feature.service');
return { myFeatureProxy: Container.get(MyFeatureService) };
}
}