Add push$ to Collection; make Container listen for retroactive blueprint changes

This commit is contained in:
2022-09-13 23:08:57 -05:00
parent a173393697
commit f1791b1d76
5 changed files with 94 additions and 9 deletions

View File

@@ -166,6 +166,7 @@ export const Singleton = (name?: string): ClassDecorator => {
...(name ? { name } : {}),
}
logIfDebugging('extollo.di.singleton', 'Registering singleton target:', target, 'injectionType:', injectionType)
Reflect.defineMetadata(DEPENDENCY_KEYS_SERVICE_TYPE_KEY, injectionType, target)
Injectable()(target)