class ContextualBindingBuilder implements ContextualBindingBuilder (View source)

Methods

void
__construct( Container $container, string $concrete)

Create a new contextual binding builder.

$this
needs( string $abstract)

Define the abstract target that depends on the context.

void
give( Closure|string $implementation)

Define the implementation for the contextual binding.

Details

at line line 37
void __construct( Container $container, string $concrete)

Create a new contextual binding builder.

Parameters

Container $container
string $concrete

Return Value

void

at line line 49
$this needs( string $abstract)

Define the abstract target that depends on the context.

Parameters

string $abstract

Return Value

$this

at line line 62
void give( Closure|string $implementation)

Define the implementation for the contextual binding.

Parameters

Closure|string $implementation

Return Value

void