Container
class Container
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 41
__construct(array $params = [])
No description
at line 50
array
getParameters()
No description
at line 62
Container
addService($name, $service)
Adds the service to the container.
at line 88
void
removeService($name)
Removes the service from the container.
at line 101
object
getService($name)
Gets the service object by name.
at line 119
string
getServiceType($name)
Gets the service type by name.
at line 138
bool
hasService($name)
Does the service exist?
at line 152
bool
isCreated($name)
Is the service created?
at line 168
object
createService($name, array $args = [])
Creates new instance of the service.
at line 202
object|null
getByType($type, $throw = true)
Resolves service by type.
at line 224
string[]
findByType($type)
Gets the service names of the specified type.
at line 238
array
findByTag($tag)
Gets the service names of the specified tag.
at line 254
object
createInstance($class, array $args = [])
Creates new instance using autowiring.
at line 275
void
callInjects($service)
Calls all methods starting with with "inject" using autowiring.
at line 285
mixed
callMethod(callable $function, array $args = [])
Calls method using autowiring.
at line 300
mixed
expand($s)
deprecated
deprecated
Expands %placeholders%.
at line 307
__get($name)
deprecated
deprecated
No description
at line 316
__set($name, $service)
deprecated
deprecated
No description
at line 324
__isset($name)
deprecated
deprecated
No description
at line 332
__unset($name)
deprecated
deprecated
No description
at line 339
static
getMethodName($name)
No description