Méthode |
Description |
|
get ( string $name, array $parameters = [] ) : mixed |
Resolves the service based on its configuration |
|
getDefault ( ) : static |
Return the First DI created |
|
getShared ( string $name, array $parameters = [] ) : mixed |
Resolves a shared service based on their configuration |
|
has ( string $name ) : boolean |
Check whether the DI contains a service by a name |
|
remove ( string $name ) : static |
Removes a service from the service container |
|
set ( string $name, mixed $definition, boolean $shared = false, array $aliases = [] ) : static |
Registers a service in the service container |
|
setShared ( string $name, mixed $definition, array $aliases = [] ) : static |
Registers an "always shared" service in the services container |
|