interface TaggedContainerInterface implements ContainerInterface
TaggedContainerInterface is the interface implemented when a container knows how to deals with tags.
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 | 
| bool |  has(string $id)  Returns true if the given service is defined.  |  from ContainerInterface | 
| mixed |  getParameter(string $name)  Gets a parameter.  |  from ContainerInterface | 
| bool |  hasParameter(string $name)  Checks if a parameter exists.  |  from ContainerInterface | 
|  setParameter(string $name, mixed $value)  Sets a parameter.  |  from ContainerInterface | |
|  enterScope(string $name) deprecated  Enters the given scope.  |  from ContainerInterface | |
|  leaveScope(string $name) deprecated  Leaves the current scope, and re-enters the parent scope.  |  from ContainerInterface | |
|  addScope(ScopeInterface $scope) deprecated  Adds a scope to the container.  |  from ContainerInterface | |
| bool |  hasScope(string $name) deprecated  Whether this container has the given scope.  |  from ContainerInterface | 
| bool |  isScopeActive(string $name) deprecated  Determines whether the given scope is currently active.  |  from ContainerInterface | 
| array |  findTaggedServiceIds(string $name)  Returns service ids for a given tag.  |  
Details
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.
object get(string $id, int $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE)
Gets a service.
bool has(string $id)
Returns true if the given service is defined.
mixed getParameter(string $name)
Gets a parameter.
bool hasParameter(string $name)
Checks if a parameter exists.
setParameter(string $name, mixed $value)
Sets a parameter.
enterScope(string $name) deprecated
deprecated
since version 2.8, to be removed in 3.0.Enters the given scope.
leaveScope(string $name) deprecated
deprecated
since version 2.8, to be removed in 3.0.Leaves the current scope, and re-enters the parent scope.
addScope(ScopeInterface $scope) deprecated
deprecated
since version 2.8, to be removed in 3.0.Adds a scope to the container.
bool hasScope(string $name) deprecated
deprecated
since version 2.8, to be removed in 3.0.Whether this container has the given scope.
bool isScopeActive(string $name) deprecated
deprecated
since version 2.8, to be removed in 3.0.Determines whether the given scope is currently active.
It does however not check if the scope actually exists.
array findTaggedServiceIds(string $name)
Returns service ids for a given tag.
Please login to continue.