ContextualBindingBuilder
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 14
ContextualBindingBuilder
needs(string $abstract)
Define the abstract target that depends on the context.
at line 21
ContextualBindingBuilder
give(mixed $implementation)
Define the implementation for the contextual binding.
at line 28
ContextualBindingBuilder
giveTagged(string $tag)
Define tagged services to be used as the implementation for the contextual binding.
at line 35
ContextualBindingBuilder
giveConfig(string $key, mixed $default = null)
Specify the configuration item to bind as a primitive.