From e891e95474a3692a2837303bcd60d713cb8afe4a Mon Sep 17 00:00:00 2001 From: Alexis Lefebvre Date: Thu, 5 Jan 2023 02:52:11 +0100 Subject: [PATCH] remove mention to @required --- service_container/autowiring.rst | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/service_container/autowiring.rst b/service_container/autowiring.rst index 20c6e1223b6..d70ccbdaa53 100644 --- a/service_container/autowiring.rst +++ b/service_container/autowiring.rst @@ -578,11 +578,8 @@ Autowiring will automatically call *any* method with the ``#[Required]`` attribu above it, autowiring each argument. If you need to manually wire some of the arguments to a method, you can always explicitly :doc:`configure the method call `. -If your PHP version doesn't support attributes (they were introduced in PHP 8), -you can use the ``@required`` annotation instead. - Despite property injection having some :ref:`drawbacks `, -autowiring with ``#[Required]`` or ``@required`` can also be applied to public +autowiring with ``#[Required]`` can also be applied to public typed properties: .. configuration-block::