Marks a class, property, or parameter as injectable for dependency injection.
Can specify the service identifier and whether it's required.
CloneableInstantiable
- Attributes
Attribute ( 41)
| Properties |
| public readonly ?string $factory |
| public readonly bool $required |
| public readonly ?string $serviceId |
| Methods |
| public __construct(?string $serviceId = NULL, bool $required = true, ?string $factory = NULL) |