Skip to content

Commit 91d2c7c

Browse files
committed
Fixes
1 parent 2bc467f commit 91d2c7c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/dependency_injection/autowiring.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ and a Twitter client using it:
309309
rot13_transformer:
310310
class: Acme\Rot13Transformer
311311
312-
Acme\TransformerInterface: @rot13_transformer
312+
Acme\TransformerInterface: "@rot13_transformer"
313313
314314
twitter_client:
315315
class: Acme\TwitterClient
@@ -332,6 +332,7 @@ and a Twitter client using it:
332332
333333
<services>
334334
<service id="rot13_transformer" class="Acme\Rot13Transformer" />
335+
335336
<service id="Acme\TransformerInterface" alias="rot13_transformer" />
336337
337338
<service id="twitter_client" class="Acme\TwitterClient" autowire="true" />
@@ -384,7 +385,7 @@ to use which leads to errors like this:
384385
Fortunately, the FQCN alias is here to specify which implementation
385386
to use by default.
386387

387-
.. versionadded:: 3.2
388+
.. versionadded:: 3.3
388389
Using FQCN aliases to fix autowiring ambiguities is allowed since Symfony
389390
3.3. Prior to version 3.3, you needed to use the ``autowiring_types`` key.
390391

0 commit comments

Comments
 (0)