public
mixed
|
#
bind( string $id, mixed $value = null, boolean $singleton = false )
Set a parameter or an object.
Set a parameter or an object.
Parameters
Returns
mixed
Throws
Exception when singleton cannot be rebind.
|
protected
Closure
|
#
call_closure( mixed $closure, array $parameters = [] )
Call closure.
Parameters
Returns
Closure
|
public
boolean
|
#
exists( string $id )
Check if identifier is set or not.
Check if identifier is set or not.
Parameters
Returns
boolean
|
protected
Closure
|
#
get_closure( mixed $value, boolean $singleton = false )
Get closure function.
Parameters
Returns
Closure
|
protected
string
|
#
get_class_prefix( string $id, boolean $check = true )
Get class prefix.
Parameters
Returns
string
|
public
boolean
|
#
is_singleton( string $id )
Determine if a given type is a singleton or not.
Determine if a given type is a singleton or not.
Parameters
Returns
boolean
Throws
InvalidArgumentException if argument is not string.
|
public
Closure
|
#
make( string $id, array $parameters = [] )
Resolve the given type from the container.
Resolve the given type from the container.
Parameters
Returns
Closure
Throws
Exception if identifier is not defined.
|
public
mixed
|
#
once( string $key, mixed $callback )
Add key and value to the container once.
Add key and value to the container once.
Parameters
Returns
mixed
|
public
|
#
remove( string $id )
Unset value by identifier.
Unset value by identifier.
Parameters
|
public
|
|
public
mixed
|
#
singleton( string $id, mixed $value = null )
Set a parameter or an object.
Set a parameter or an object.
Parameters
Returns
mixed
|
public
boolean
|
#
offsetExists( string $id )
Check if identifier is set or not.
Check if identifier is set or not.
Parameters
Returns
boolean
Codecoverageignore
Implementation of
ArrayAccess::offsetExists()
|
public
mixed
|
#
offsetGet( string $id )
Get value by identifier.
Parameters
Returns
mixed
Codecoverageignore
Implementation of
ArrayAccess::offsetGet()
|
public
|
#
offsetSet( string $id, mixed $value )
Set a parameter or an object.
Set a parameter or an object.
Parameters
Codecoverageignore
Implementation of
ArrayAccess::offsetSet()
|
public
|
#
offsetUnset( string $id )
Unset value by identifier.
Unset value by identifier.
Parameters
Codecoverageignore
Implementation of
ArrayAccess::offsetUnset()
|