Copied!

TaggedContainerInterface is the interface implemented when a container knows how to deals with tags.

AbstractInterface
Constants
public Symfony\Component\DependencyInjection\ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE = 1
public Symfony\Component\DependencyInjection\ContainerInterface::IGNORE_ON_INVALID_REFERENCE = 3
public Symfony\Component\DependencyInjection\ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE = 4
public Symfony\Component\DependencyInjection\ContainerInterface::NULL_ON_INVALID_REFERENCE = 2
public Symfony\Component\DependencyInjection\ContainerInterface::RUNTIME_EXCEPTION_ON_INVALID_REFERENCE = 0
Methods
public abstract findTaggedServiceIds(string $name) : array
 

Returns service ids for a given tag.

  • param string $name The tag name
public abstract Symfony\Component\DependencyInjection\ContainerInterface::get(string $id, int $invalidBehavior = 1self::EXCEPTION_ON_INVALID_REFERENCE) : ?object
 
  • template
  • param \B $invalidBehavior
  • psalm-return (B is self::EXCEPTION_ON_INVALID_REFERENCE|self::RUNTIME_EXCEPTION_ON_INVALID_REFERENCE ? object : object|null)
  • throws \ServiceCircularReferenceException When a circular reference is detected
  • throws \ServiceNotFoundException When the service is not defined
  • see \Reference
public abstract Symfony\Component\DependencyInjection\ContainerInterface::getParameter(string $name) : UnitEnum|array|string|int|float|bool|?null
 
  • throws \ParameterNotFoundException if the parameter is not defined
public abstract Symfony\Component\DependencyInjection\ContainerInterface::has(string $id) : bool
public abstract Symfony\Component\DependencyInjection\ContainerInterface::hasParameter(string $name) : bool
public abstract Symfony\Component\DependencyInjection\ContainerInterface::initialized(string $id) : bool
 

Check for whether or not a service has been initialized.

public abstract Symfony\Component\DependencyInjection\ContainerInterface::set(string $id, ?object $service) : void
public abstract Symfony\Component\DependencyInjection\ContainerInterface::setParameter(string $name, UnitEnum|array|string|int|float|bool|?null $value) : void
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration