Method |
Description |
|
__construct ( array $values = [] ) |
Constructor. Sets up the properties. |
|
bootstrap ( ) : void |
Bootstraps (and locks) the container. |
|
extend ( string $name, callable $new_factory ) : static |
Replaces the factory callback with the given name with the given factory callback. |
|
lock ( ) : void |
Locks the container. |
|
offsetExists ( string $name ) : boolean |
Checks if a value or factory callback with the given name exists. |
|
offsetGet ( string $name ) : mixed |
Returns the value or factory callback with the given name. |
|
offsetSet ( string $name, mixed $value ) : void |
Stores the given value or factory callback with the given name. |
|
offsetUnset ( string $name ) : void |
Removes the value or factory callback with the given name. |
|
share ( string $name, mixed $value ) : static |
Stores the given value or factory callback with the given name, and defines it to be accessible even after the
container has been bootstrapped. |
|