Closed samber closed 4 months ago
We should be able to add multiple callbacks for each hook:
type InjectorOpts struct { HookAfterRegistration []func(scope *Scope, serviceName string) HookAfterShutdown []func(scope *Scope, serviceName string) Logf []func(format string, args ...any) }
instead of
type InjectorOpts struct { HookAfterRegistration func(scope *Scope, serviceName string) HookAfterShutdown func(scope *Scope, serviceName string) Logf func(format string, args ...any) }
Requirement for #70
✅
We should be able to add multiple callbacks for each hook:
instead of
Requirement for #70