interface IntrospectableContainerInterface implements ContainerInterface
IntrospectableContainerInterface defines additional introspection functionality for containers, allowing logic to be implemented based on a Container's state.
Methods
|
set(string $id, object $service, string $scope = self::SCOPE_CONTAINER)
Sets a service. |
from ContainerInterface | |
| object |
get(string $id, int $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE)
Gets a service. |
from ContainerInterface |
| Boolean |
has(string $id)
Returns true if the given service is defined. |
from ContainerInterface |
| mixed |
getParameter(string $name)
Gets a parameter. |
from ContainerInterface |
| Boolean |
hasParameter(string $name)
Checks if a parameter exists. |
from ContainerInterface |
|
setParameter(string $name, mixed $value)
Sets a parameter. |
from ContainerInterface | |
|
enterScope(string $name)
Enters the given scope |
from ContainerInterface | |
|
leaveScope(string $name)
Leaves the current scope, and re-enters the parent scope |
from ContainerInterface | |
|
addScope(ScopeInterface $scope)
Adds a scope to the container |
from ContainerInterface | |
| Boolean |
hasScope(string $name)
Whether this container has the given scope |
from ContainerInterface |
| Boolean |
isScopeActive(string $name)
Determines whether the given scope is currently active. |
from ContainerInterface |
| Boolean |
initialized(string $id)
Check for whether or not a service has been initialized. |
Details
in ContainerInterface at line 43
public
set(string $id, object $service, string $scope = self::SCOPE_CONTAINER)
Sets a service.
in ContainerInterface at line 61
public object
get(string $id, int $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE)
Gets a service.
in ContainerInterface at line 72
public Boolean
has(string $id)
Returns true if the given service is defined.
in ContainerInterface at line 85
public mixed
getParameter(string $name)
Gets a parameter.
in ContainerInterface at line 96
public Boolean
hasParameter(string $name)
Checks if a parameter exists.
in ContainerInterface at line 106
public
setParameter(string $name, mixed $value)
Sets a parameter.
in ContainerInterface at line 115
public
enterScope(string $name)
Enters the given scope
in ContainerInterface at line 124
public
leaveScope(string $name)
Leaves the current scope, and re-enters the parent scope
in ContainerInterface at line 133
public
addScope(ScopeInterface $scope)
Adds a scope to the container
in ContainerInterface at line 144
public Boolean
hasScope(string $name)
Whether this container has the given scope
in ContainerInterface at line 157
public Boolean
isScopeActive(string $name)
Determines whether the given scope is currently active.
It does however not check if the scope actually exists.
at line 31
public Boolean
initialized(string $id)
Check for whether or not a service has been initialized.