Container
class Container extends Object
The dependency injection container default implementation.
Constants
TAGS |
|
TYPES |
|
SERVICES |
|
ALIASES |
|
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.
Gets the service type 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.
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 84
void
removeService($name)
Removes the service from the container.
at line 97
object
getService($name)
Gets the service object by name.
at line 115
string
getServiceType($name)
Gets the service type by name.
at line 134
bool
hasService($name)
Does the service exist?
at line 148
bool
isCreated($name)
Is the service created?
at line 164
object
createService($name, array $args = array())
Creates new instance of the service.
at line 199
object
getByType($class, $need = TRUE)
Resolves service by type.
at line 219
string[]
findByType($class)
Gets the service names of the specified type.
at line 233
array
findByTag($tag)
Gets the service names of the specified tag.
at line 249
object
createInstance($class, array $args = array())
Creates new instance using autowiring.
at line 270
void
callInjects($service)
Calls all methods starting with with "inject" using autowiring.
at line 280
mixed
callMethod($function, array $args = array())
Calls method using autowiring.
at line 298
mixed
expand($s)
deprecated
deprecated
Expands %placeholders%.
at line 305
__get($name)
deprecated
deprecated
No description
at line 314
__set($name, $service)
deprecated
deprecated
No description
at line 322
__isset($name)
deprecated
deprecated
No description
at line 330
__unset($name)
deprecated
deprecated
No description
at line 345
static
getMethodName($name)
No description