Skip to content

Commit bfc68c1

Browse files
committed
minor #16338 [DependencyInjection] Update autowiring.rst (amine-betari)
This PR was submitted for the 5.3 branch but it was merged into the 5.4 branch instead. Discussion ---------- [DependencyInjection] 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 Commits ------- f90b0a5 Update autowiring.rst
2 parents 5b6cc36 + f90b0a5 commit bfc68c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

service_container/autowiring.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,7 @@ dealing with the ``TransformerInterface``.
371371
.. tip::
372372

373373
When using a `service definition prototype`_, if only one service is
374-
discovered that implements an interface, and that interface is also
375-
discovered in the same file, configuring the alias is not mandatory
374+
discovered that implements an interface, configuring the alias is not mandatory
376375
and Symfony will automatically create one.
377376

378377
Dealing with Multiple Implementations of the Same Type

0 commit comments

Comments
 (0)