Container::flush()

void flush() Flush the container of all bindings and resolved instances. Return Value void

Container::factory()

Closure factory(string $abstract, array $defaults = array()) Get a closure to resolve the given type from the container. Parameters string $abstract array $defaults Return Value Closure

Container::extend()

void extend(string $abstract, Closure $closure) "Extend" an abstract type in the container. Parameters string $abstract Closure $closure Return Value void Exceptions InvalidArgumentException

Container::extend()

void extend(string $abstract, Closure $closure) "Extend" an abstract type in the container. Parameters string $abstract Closure $closure Return Value void Exceptions InvalidArgumentException

Container::call()

mixed call(callable|string $callback, array $parameters = array(), string|null $defaultMethod = null) Call the given Closure / class@method and inject its dependencies. Parameters callable|string $callback array $parameters string|null $defaultMethod Return Value mixed

Container::call()

mixed call(callable|string $callback, array $parameters = array(), string|null $defaultMethod = null) Call the given Closure / class@method and inject its dependencies. Parameters callable|string $callback array $parameters string|null $defaultMethod Return Value mixed

Container::build()

mixed build(string $concrete, array $parameters = array()) Instantiate a concrete instance of the given type. Parameters string $concrete array $parameters Return Value mixed Exceptions BindingResolutionException

Container::bound()

bool bound(string $abstract) Determine if the given abstract type has been bound. Parameters string $abstract Return Value bool

Container::bound()

bool bound(string $abstract) Determine if the given abstract type has been bound. Parameters string $abstract Return Value bool

Container::bindIf()

void bindIf(string $abstract, Closure|string|null $concrete = null, bool $shared = false) Register a binding if it hasn't already been registered. Parameters string $abstract Closure|string|null $concrete bool $shared Return Value void