Copied!

Tells which method should be turned into a Closure based on the name of the parameter it's attached to.

CloneableInstantiable
Properties
public readonly array|bool Symfony\Component\DependencyInjection\Attribute\Autowire::$lazy
public readonly 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(string $service, string|bool $lazy = false)
 
  • param string $service The service containing the method to autowire
  • param bool|class-string $lazy Whether to use lazy-loading for this argument
public buildDefinition(?mixed $value, ?string $type, ReflectionParameter $parameter) : Symfony\Component\DependencyInjection\Definition
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration