Метод |
Описание |
|
__call ( string $method, array $arguments = [] ) : void |
Magic method to get or set services using setters/getters |
|
__construct ( ) |
|
|
__debugInfo ( ) : array |
|
|
__get ( string $propertyName ) : mixed |
Magic method __get |
|
__isset ( string $name ) : boolean |
|
|
__set ( string $name, mixed $value ) |
|
|
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 service, the resolved service is stored in the DI, subsequent requests for this service will return the same instance |
|
has ( string $name ) : boolean |
Check whether the DI contains a service by a name |
|
remove ( string $name ) : static |
Removes a service in the services container |
|
set ( string $name, mixed $definition, boolean $shared = false, array $aliases = [] ) : static |
Registers a service in the services container |
|
setShared ( string $name, mixed $definition, array $aliases = [] ) : static |
Registers an "always shared" service in the services container |
|