Copied!

Autowires a service locator based on a tag name or an explicit list of key => service-type pairs.

CloneableInstantiable
Properties
publicreadonly array|bool Symfony\Component\DependencyInjection\Attribute\Autowire::$lazy
publicreadonly Symfony\Component\ExpressionLanguage\Expression|Symfony\Component\DependencyInjection\Reference|Symfony\Component\DependencyInjection\Argument\ArgumentInterface|array|string|?null Symfony\Component\DependencyInjection\Attribute\Autowire::$value
Methods
public __construct(array|string $services, ?string $indexAttribute = NULL, ?string $defaultIndexMethod = NULL, ?string $defaultPriorityMethod = NULL, array|string $exclude = [], bool $excludeSelf = true)
 
  • see \ServiceSubscriberInterface::getSubscribedServices()
  • param string|(string|\SubscribedService)[] $services An explicit list of services or a tag name
  • param string|string[] $exclude A service or a list of services to exclude
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration