* Create a corresponding binding for configuration of the target bound by * the given key in the context. * * For example, `ctx.configure('controllers.MyController').to({x: 1})` will * create binding `controllers.MyController:$config` with value `{x: 1}`. * * @param key - The key f
(
key: BindingAddress = '',
)
| 263 | * @param key - The key for the binding to be configured |
| 264 | */ |
| 265 | configure<ConfigValueType = BoundValue>( |
| 266 | key: BindingAddress = '', |
| 267 | ): Binding<ConfigValueType> { |
| 268 | const bindingForConfig = Binding.configure<ConfigValueType>(key); |
| 269 | this.add(bindingForConfig); |
| 270 | return bindingForConfig; |
| 271 | } |
| 272 | |
| 273 | /** |
| 274 | * Get the value or promise of configuration for a given binding by key |