Copied!

Represents a collection of services found by tag name to lazily iterate over.

CloneableInstantiable
Methods
public __construct(string $tag, ?string $indexAttribute = NULL, ?string $defaultIndexMethod = NULL, bool $needsIndexes = false, ?string $defaultPriorityMethod = NULL, array $exclude = [], bool $excludeSelf = true)
 
  • param string $tag The name of the tag identifying the target services
  • param string|null $indexAttribute The name of the attribute that defines the key referencing each service in the tagged collection
  • param string|null $defaultIndexMethod The static method that should be called to get each service's key when their tag doesn't define the previous attribute
  • param bool $needsIndexes Whether indexes are required and should be generated when computing the map
  • param string|null $defaultPriorityMethod The static method that should be called to get each service's priority when their tag doesn't define the "priority" attribute
  • param array $exclude Services to exclude from the iterator
  • param bool $excludeSelf Whether to automatically exclude the referencing service from the iterator
public excludeSelf() : bool
public getDefaultIndexMethod() : ?string
public getDefaultPriorityMethod() : ?string
public getExclude() : array
public getIndexAttribute() : ?string
public getTag() : string
public Symfony\Component\DependencyInjection\Argument\IteratorArgument::getValues() : array
public needsIndexes() : bool
public Symfony\Component\DependencyInjection\Argument\IteratorArgument::setValues(array $values) : void
Properties
private ?string $defaultIndexMethod
private ?string $defaultPriorityMethod
private array $exclude
private bool $excludeSelf
private ?mixed $indexAttribute
private bool $needsIndexes
private string $tag
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration