Allows inline service definition for an argument.
Using this attribute on a class autowires a new instance which is not shared between different services.
$class a FQCN, or an array to define a factory. Use the "@" prefix to reference a service.
- author Ismail Özgün Turan
- attribute Attribute ( 32)
CloneableInstantiable
- Extends
- Children
- Attributes
Attribute ( 32)
Properties |
Methods |
public __construct(array|string|?null $class = NULL, array $arguments = [], array $calls = [], array $properties = [], ?string $parent = NULL, string|bool $lazy = false) |
public buildDefinition(?mixed $value, ?string $type, ReflectionParameter $parameter) : Symfony |