Skip to content

Commit e891e95

Browse files
remove mention to @required
1 parent 7b93c1f commit e891e95

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

service_container/autowiring.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -578,11 +578,8 @@ Autowiring will automatically call *any* method with the ``#[Required]`` attribu
578578
above it, autowiring each argument. If you need to manually wire some of the arguments
579579
to 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-
584581
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
586583
typed properties:
587584

588585
.. configuration-block::

0 commit comments

Comments
 (0)