Method |
Description |
|
__construct ( array $params = [] ) |
|
|
__get ( $name ) |
|
|
__isset ( $name ) |
|
|
__set ( $name, $service ) |
|
|
__unset ( $name ) |
|
|
addService ( $name, $service ) : self |
Adds the service to the container. |
|
callInjects ( $service ) : void |
Calls all methods starting with with "inject" using autowiring. |
|
callMethod ( callable $function, array $args = [] ) : mixed |
Calls method using autowiring. |
|
createInstance ( $class, array $args = [] ) : object |
Creates new instance using autowiring. |
|
createService ( $name, array $args = [] ) : object |
Creates new instance of the service. |
|
expand ( $s ) : mixed |
Expands %placeholders%. |
|
findByTag ( $tag ) : array |
Gets the service names of the specified tag. |
|
findByType ( $class ) : string[] |
Gets the service names of the specified type. |
|
getByType ( $class, $need = TRUE ) : object |
Resolves service by type. |
|
getMethodName ( $name ) |
|
|
getParameters ( ) : array |
|
|
getService ( $name ) : object |
Gets the service object by name. |
|
getServiceType ( $name ) : string |
Gets the service type by name. |
|
hasService ( $name ) : boolean |
Does the service exist? |
|
isCreated ( $name ) : boolean |
Is the service created? |
|
removeService ( $name ) : void |
Removes the service from the container. |
|