IntrospectableContainerInterface deprecated
interface IntrospectableContainerInterface implements ContainerInterface
deprecated
IntrospectableContainerInterface defines additional introspection functionality for containers, allowing logic to be implemented based on a Container's state.
Methods
Sets a service.
Gets a service.
Check for whether or not a service has been initialized.
Details
in ContainerInterface at line line 41
set(string $id, object $service, string $scope = self::SCOPE_CONTAINER)
Sets a service.
Note: The $scope parameter is deprecated since version 2.8 and will be removed in 3.0.
in ContainerInterface at line line 56
object
get(string $id, int $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE)
Gets a service.
in ContainerInterface at line line 65
bool
has(string $id)
Returns true if the given service is defined.
in ContainerInterface at line line 76
mixed
getParameter(string $name)
Gets a parameter.
in ContainerInterface at line line 85
bool
hasParameter(string $name)
Checks if a parameter exists.
in ContainerInterface at line line 93
setParameter(string $name, mixed $value)
Sets a parameter.
in ContainerInterface at line line 102
enterScope(string $name)
deprecated
deprecated
Enters the given scope.
in ContainerInterface at line line 111
leaveScope(string $name)
deprecated
deprecated
Leaves the current scope, and re-enters the parent scope.
in ContainerInterface at line line 120
addScope(ScopeInterface $scope)
deprecated
deprecated
Adds a scope to the container.
in ContainerInterface at line line 131
bool
hasScope(string $name)
deprecated
deprecated
Whether this container has the given scope.
in ContainerInterface at line line 144
bool
isScopeActive(string $name)
deprecated
deprecated
Determines whether the given scope is currently active.
It does however not check if the scope actually exists.
at line line 31
bool
initialized(string $id)
Check for whether or not a service has been initialized.