File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 3
3
namespace Cspray \AnnotatedContainer \Attribute ;
4
4
5
5
use Attribute ;
6
- use UnitEnum ;
7
6
8
7
/**
9
8
* Represents a value that should be injected into a method parameter.
12
11
* which Inject attribute would be used if you do not specify unique profiles is intentionally undefined. It is possible
13
12
* that any one of the attributes could be used, so it is highly recommended if you repeat an Inject Attribute you also
14
13
* give it a profile!
14
+ *
15
+ * This Attribute can target properties to allow for constructor property promotion. It is not supported to annotate a
16
+ * non-promoted property.
15
17
*/
16
- #[Attribute(Attribute::TARGET_PARAMETER | Attribute::IS_REPEATABLE )]
18
+ #[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_PROPERTY | Attribute:: IS_REPEATABLE )]
17
19
final class Inject implements InjectAttribute {
18
20
19
21
/**
You can’t perform that action at this time.
0 commit comments