File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -343,12 +343,9 @@ dealing with the ``TransformerInterface``.
343
343
344
344
.. tip ::
345
345
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.
349
- Nevertheless it is recommended to provide an alias in order to preserve application
350
- logic when a second concrete implementation kicks in, otherwise compiler compilation
351
- would throw an exception.
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.
352
349
353
350
Dealing with Multiple Implementations of the Same Type
354
351
------------------------------------------------------
You can’t perform that action at this time.
0 commit comments