Container
class Container extends Object
The dependency injection container default implementation.
Constants
TAGS |
|
TYPES |
|
Properties
array | $parameters | ||
protected array[] | $meta |
Methods
No description
No description
Adds the service to the container.
Removes the service from the container.
Gets the service object by name.
Does the service exist?
Is the service created?
Creates new instance of the service.
Resolves service by type.
Gets the service names of the specified type.
Gets the service names of the specified tag.
Creates new instance using autowiring.
Calls all methods starting with with "inject" using autowiring.
Calls method using autowiring.
Expands %placeholders%.
No description
Details
at line 36
__construct(array $params = array())
No description
at line 45
array
getParameters()
No description
at line 57
Container
addService($name, $service)
Adds the service to the container.
at line 87
void
removeService($name)
Removes the service from the container.
at line 99
object
getService($name)
Gets the service object by name.
at line 113
bool
hasService($name)
Does the service exist?
at line 125
bool
isCreated($name)
Is the service created?
at line 140
object
createService($name, array $args = array())
Creates new instance of the service.
at line 174
object
getByType($class, $need = TRUE)
Resolves service by type.
at line 194
string[]
findByType($class)
Gets the service names of the specified type.
at line 206
array
findByTag($tag)
Gets the service names of the specified tag.
at line 222
object
createInstance($class, array $args = array())
Creates new instance using autowiring.
at line 243
void
callInjects($service)
Calls all methods starting with with "inject" using autowiring.
at line 267
mixed
callMethod($function, array $args = array())
Calls method using autowiring.
at line 284
mixed
expand($s)
Expands %placeholders%.
at line 291
__get($name)
deprecated
deprecated
No description
at line 300
__set($name, $service)
deprecated
deprecated
No description
at line 308
__isset($name)
deprecated
deprecated
No description
at line 316
__unset($name)
deprecated
deprecated
No description
at line 331
static
getMethodName($name)
No description