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
578578above it, autowiring each argument. If you need to manually wire some of the arguments
579579to a method, you can always explicitly :doc: `configure the method call </service_container/calls >`.
580580
581- If your PHP version doesn't support attributes (they were introduced in PHP 8),
582- you can use the ``@required `` annotation instead.
583-
584581Despite 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
586583typed properties:
587584
588585.. configuration-block ::
You can’t perform that action at this time.
0 commit comments