SubscribedService
in package
FinalYes
For use as the return value for {@see ServiceSubscriberInterface}.
Tags
Table of Contents
Properties
- $attributes : array<string|int, object>
- $key : string|null
- $nullable : bool
- $type : string|null
Methods
- __construct() : mixed
Attributes
#[Attribute]
#[Attribute]
Properties
$attributes
public
array<string|int, object>
$attributes
$key
public
string|null
$key
= null
$nullable
public
bool
$nullable
= false
$type
public
string|null
$type
= null
Methods
__construct()
public
__construct([string|null $key = null ][, class-string|null $type = null ][, bool $nullable = false ][, object|array<string|int, object> $attributes = [] ]) : mixed
Parameters
- $key : string|null = null
-
The key to use for the service
- $type : class-string|null = null
-
The service class
- $nullable : bool = false
-
Whether the service is optional
- $attributes : object|array<string|int, object> = []
-
One or more dependency injection attributes to use