Copied!

Attribute to tell which callable to give to an argument of type Closure.

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(array|string|?null $callable = NULL, ?string $service = NULL, ?string $method = NULL, string|bool $lazy = false)
 
  • param string|array|null $callable The callable to autowire
  • param string|null $service The service containing the callable to autowire
  • param string|null $method The method name that will be autowired
  • 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
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration