Метод |
Описание |
|
bind ( string $id, mixed $value = null, boolean $singleton = false ) : mixed |
Set a parameter or an object. |
|
exists ( string $id ) : boolean |
Check if identifier is set or not. |
|
is_singleton ( string $id ) : boolean |
Determine if a given type is a singleton or not. |
|
make ( string $id, array $parameters = [] ) : Closure |
Resolve the given type from the container. |
|
offsetExists ( string $id ) : boolean |
Check if identifier is set or not. |
|
offsetGet ( string $id ) : mixed |
Get value by identifier. |
|
offsetSet ( string $id, mixed $value ) |
Set a parameter or an object. |
|
offsetUnset ( string $id ) |
Unset value by identifier. |
|
once ( string $key, mixed $callback ) : mixed |
Add key and value to the container once. |
|
remove ( string $id ) |
Unset value by identifier. |
|
reset ( ) |
Reset container values. |
|
singleton ( string $id, mixed $value = null ) : mixed |
Set a parameter or an object. |
|