interface ContextualBindingBuilder (View source)
| $this | needs(string $abstract)
Define the abstract target that depends on the context. | |
| void | give(Closure|string|array $implementation)
Define the implementation for the contextual binding. | |
| void | giveTagged(string $tag)
Define tagged services to be used as the implementation for the contextual binding. | |
| void | giveConfig(string $key, mixed $default = null)
Specify the configuration item to bind as a primitive. |
Define the abstract target that depends on the context.
Define the implementation for the contextual binding.
Define tagged services to be used as the implementation for the contextual binding.
Specify the configuration item to bind as a primitive.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Contracts/Container/ContextualBindingBuilder.html