(artifactNamespace: string, ...specs: BindingSpec[])
| 160 | * @param specs - Extra specs for the binding |
| 161 | */ |
| 162 | export function booter(artifactNamespace: string, ...specs: BindingSpec[]) { |
| 163 | return injectable( |
| 164 | { |
| 165 | tags: { |
| 166 | artifactNamespace, |
| 167 | [BootTags.BOOTER]: BootTags.BOOTER, |
| 168 | [ContextTags.NAMESPACE]: BootBindings.BOOTERS, |
| 169 | }, |
| 170 | }, |
| 171 | ...specs, |
| 172 | ); |
| 173 | } |
| 174 | |
| 175 | /** |
| 176 | * Interface to describe an object that may have an array of `booters`. |
no test coverage detected