Spec-Zone.ru › Laravel 8

ContextualBindingBuilder

interface ContextualBindingBuilder (View source)

Methods

$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.

Details

$this needs(string $abstract)

Define the abstract target that depends on the context.

Parameters

string $abstract

Return Value

$this

void give(Closure|string|array $implementation)

Define the implementation for the contextual binding.

Parameters

Closure|string|array $implementation

Return Value

void

void giveTagged(string $tag)

Define tagged services to be used as the implementation for the contextual binding.

Parameters

string $tag

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Contracts/Container/ContextualBindingBuilder.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API