ContextualBindingBuilder when(string $concrete) Define a contextual binding. Parameters string $concrete Return Value ContextualBindingBuilder
array tagged(array $tag) Resolve all of the bindings for a given tag. Parameters array $tag Return Value array
void tag(array|string $abstracts, array|mixed $tags) Assign a set of tags to a given binding. Parameters array|string $abstracts array|mixed $tags Return Value void
void singleton(string|array $abstract, Closure|string|null $concrete = null) Register a shared binding in the container. Parameters string|array $abstract Closure|string|null $concrete Return Value void
Closure share(Closure $closure) Wrap a Closure such that it is shared. Parameters Closure $closure Return Value Closure
static Container setInstance(Container $container = null) Set the shared instance of the container. Parameters Container $container Return Value Container
void resolving(string $abstract, Closure $callback = null) Register a new resolving callback. Parameters string $abstract Closure $callback Return Value void
Page 791 of 996