File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -578,11 +578,8 @@ Autowiring will automatically call *any* method with the ``#[Required]`` attribu
578
578
above it, autowiring each argument. If you need to manually wire some of the arguments
579
579
to a method, you can always explicitly :doc: `configure the method call </service_container/calls >`.
580
580
581
- If your PHP version doesn't support attributes (they were introduced in PHP 8),
582
- you can use the ``@required `` annotation instead.
583
-
584
581
Despite property injection having some :ref: `drawbacks <property-injection >`,
585
- autowiring with ``#[Required] `` or `` @required `` can also be applied to public
582
+ autowiring with ``#[Required] `` can also be applied to public
586
583
typed properties:
587
584
588
585
.. configuration-block ::
You can’t perform that action at this time.
0 commit comments