From f90b0a5674893d7964868a9d701ffebc04ec022f Mon Sep 17 00:00:00 2001 From: Amine BETARI Date: Tue, 28 Dec 2021 15:09:54 +0100 Subject: [PATCH] Update autowiring.rst I removed this sentence because there is no obligation that the interface should be in the same file as the class ====> and that interface is also discovered in the same file --- service_container/autowiring.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/service_container/autowiring.rst b/service_container/autowiring.rst index bf1696d6540..bb89ee3451a 100644 --- a/service_container/autowiring.rst +++ b/service_container/autowiring.rst @@ -371,8 +371,7 @@ dealing with the ``TransformerInterface``. .. tip:: When using a `service definition prototype`_, if only one service is - discovered that implements an interface, and that interface is also - discovered in the same file, configuring the alias is not mandatory + discovered that implements an interface, configuring the alias is not mandatory and Symfony will automatically create one. Dealing with Multiple Implementations of the Same Type