AutowireServiceClosure
extends Autowire
in package
Attribute to wrap a service in a closure that returns it.
Attributes
- #[Attribute]
- \Attribute::TARGET_PARAMETER
Table of Contents
Properties
- $lazy : bool|array<string|int, mixed>
- $value : string|array<string|int, mixed>|Expression|Reference|ArgumentInterface|null
Methods
- __construct() : mixed
- Use only ONE of the following.
Properties
$lazy read-only
public
bool|array<string|int, mixed>
$lazy
$value read-only
public
string|array<string|int, mixed>|Expression|Reference|ArgumentInterface|null
$value
Methods
__construct()
Use only ONE of the following.
public
__construct(string $service) : mixed
Parameters
- $service : string
-
Service ID (ie "some.service")