Skip to content

Commit b53bd34

Browse files
committed
review fix
1 parent 88faadd commit b53bd34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

service_container/autowiring.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,9 @@ dealing with the ``TransformerInterface``.
343343

344344
.. tip::
345345

346-
As long as you have only one concrete implementation of an interface under the same
347-
namespace, alias is not mandatory and autowire will work injecting the concrete
348-
implementation even without alias definition.
346+
As long as there is only one class implementing the interface and that class
347+
is part of the same namespace configuring the alias is not mandatory and Symfony
348+
will automatically create one.
349349
Nevertheless it is recommended to provide an alias in order to preserve application
350350
logic when a second concrete implementation kicks in, otherwise compiler compilation
351351
would throw an exception.

0 commit comments

Comments
 (0)