Symfony\Component\DependencyInjection\TaggedContainerInterface
TaggedContainerInterface is the interface implemented when a container knows how to deals with tags.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
interface TaggedContainerInterface
extends ContainerInterface
{
- // Inherited constants from ContainerInterface
- const EXCEPTION_ON_INVALID_REFERENCE = 1;
- const NULL_ON_INVALID_REFERENCE = 2;
- const IGNORE_ON_INVALID_REFERENCE = 3;
- const SCOPE_CONTAINER = 'container';
- const SCOPE_PROTOTYPE = 'prototype';
- // methods
- public array findTaggedServiceIds()
- // Inherited methods from ContainerInterface
- public void set()
- public get()
- public Boolean has()
- public mixed getParameter()
- public Boolean hasParameter()
- public void setParameter()
- public void enterScope()
- public void leaveScope()
- public void addScope()
- public Boolean hasScope()
- public Boolean isScopeActive()
Hierarchy
Extends
Implemented by
Constants
Name | Value |
---|---|
EXCEPTION_ON_INVALID_REFERENCE | 1 |
NULL_ON_INVALID_REFERENCE | 2 |
IGNORE_ON_INVALID_REFERENCE | 3 |
SCOPE_CONTAINER | 'container' |
SCOPE_PROTOTYPE | 'prototype' |
Methods
public
- findTaggedServiceIds() — Returns service ids for a given tag.
Inherited from Symfony\Component\DependencyInjection\ContainerInterface
public
- addScope() — Adds a scope to the container
- enterScope() — Enters the given scope
- get() — Gets a service.
- getParameter() — Gets a parameter.
- has() — Returns true if the given service is defined.
- hasParameter() — Checks if a parameter exists.
- hasScope() — Whether this container has the given scope
- isScopeActive() — Determines whether the given scope is currently active.
- leaveScope() — Leaves the current scope, and re-enters the parent scope
- set() — Sets a service.
- setParameter() — Sets a parameter.