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 = [])
 
  • 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
public getDefaultIndexMethod() : ?string
public getDefaultPriorityMethod() : ?string
public getExclude() : array
public getIndexAttribute() : ?string
public getTag()
public Symfony\Component\DependencyInjection\Argument\IteratorArgument::getValues() : array
public needsIndexes() : bool
public Symfony\Component\DependencyInjection\Argument\IteratorArgument::setValues(array $values)
Properties
private string $defaultIndexMethod
private string $defaultPriorityMethod
private array $exclude
private mixed $indexAttribute
private bool $needsIndexes
private string $tag
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration