ioc deps method

This commit is contained in:
Jacob Nguyen
2024-05-15 00:28:46 -05:00
parent 81515a69fa
commit b08f69edf2

View File

@@ -60,6 +60,10 @@ export class Container {
this.finished_init = true;
}
deps<T extends Record<string,any>>(): T {
return Object.fromEntries(this.__singletons) as T
}
async executeHooks(name: string) {
const hookFunctions = this.hooks.get(name) || [];
for (const hookFunction of hookFunctions) {