ContextualBindingBuilder
class ContextualBindingBuilder implements ContextualBindingBuilder
Properties
protected Container | $container | The underlying container instance. |
|
protected string | $concrete | The concrete instance. |
|
protected string | $needs | The abstract target. |
Methods
void
$this
needs(string $abstract)
Define the abstract target that depends on the context.
Details
at line 37
void
__construct(Container $container, string $concrete)
Create a new contextual binding builder.
at line 49
$this
needs(string $abstract)
Define the abstract target that depends on the context.
at line 62
void
give(Closure|string $implementation)
Define the implementation for the contextual binding.