interface ContextualBindingBuilder

Methods

needs(string $abstract)

Define the abstract target that depends on the context.

give(mixed $implementation)

Define the implementation for the contextual binding.

giveTagged(string $tag)

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

giveConfig(string $key, mixed $default = null)

Specify the configuration item to bind as a primitive.

Details

at line 12
ContextualBindingBuilder needs(string $abstract)

Define the abstract target that depends on the context.

Parameters

string $abstract

Return Value

ContextualBindingBuilder

at line 17
ContextualBindingBuilder give(mixed $implementation)

Define the implementation for the contextual binding.

Parameters

mixed $implementation

Return Value

ContextualBindingBuilder

at line 22
ContextualBindingBuilder giveTagged(string $tag)

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

Parameters

string $tag

Return Value

ContextualBindingBuilder

at line 27
ContextualBindingBuilder giveConfig(string $key, mixed $default = null)

Specify the configuration item to bind as a primitive.

Parameters

string $key
mixed $default

Return Value

ContextualBindingBuilder