Method |
Description |
|
define ( string $id, callable $definition, array $tags = [] ) |
Sets a factory for the service creation. The same service will
be returned every time |
|
get ( string $id ) : object |
Retrieves a service from the container |
|
getByTag ( string $tag ) : array |
Finds all services tagged with a particular string |
|
getParam ( string $id, mixed $default = null ) : mixed |
Gets a param from the container or a default value. |
|
has ( $id ) : boolean |
Determines whether a service is defined |
|
remove ( string $id ) |
Removes a service from the container |
|
set ( string $id, object $service, array $tags = [] ) |
Sets a object to be used as a service |
|
setParam ( string $id, mixed $value ) |
Sets a param in the container |
|