ContextualBindingBuilder::needs()

$this needs(string $abstract) Define the abstract target that depends on the context. Parameters string $abstract Return Value $this

ContextualBindingBuilder::needs()

$this needs(string $abstract) Define the abstract target that depends on the context. Parameters string $abstract Return Value $this

ContextualBindingBuilder::give()

void give(Closure|string $implementation) Define the implementation for the contextual binding. Parameters Closure|string $implementation Return Value void

ContextualBindingBuilder::give()

void give(Closure|string $implementation) Define the implementation for the contextual binding. Parameters Closure|string $implementation Return Value void

ContextualBindingBuilder

ContextualBindingBuilder interface ContextualBindingBuilder (View source) Methods $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.

ContextualBindingBuilder

ContextualBindingBuilder 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.

Container::__set()

void __set(string $key, mixed $value) Dynamically set container services. Parameters string $key mixed $value Return Value void

Container::__get()

mixed __get(string $key) Dynamically access container services. Parameters string $key Return Value mixed

Container::wrap()

Closure wrap(Closure $callback, array $parameters = array()) Wrap the given closure such that its dependencies will be injected when executed. Parameters Closure $callback array $parameters Return Value Closure

Container::when()

ContextualBindingBuilder when(string $concrete) Define a contextual binding. Parameters string $concrete Return Value ContextualBindingBuilder