Skip to content

Commit f90b0a5

Browse files
amine-betarijaviereguiluz
authored andcommitted
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
1 parent 5b6cc36 commit f90b0a5

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)