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