File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
components/dependency_injection Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -309,9 +309,9 @@ and a Twitter client using it:
309
309
rot13_transformer :
310
310
class : Acme\Rot13Transformer
311
311
312
- Acme\TransformerInterface : @rot13_transformer
312
+ Acme\T ransformerInterface: " @rot13_transformer"
313
313
314
- twitter_client :
314
+ twitter_client:
315
315
class: Acme\T witterClient
316
316
autowire: true
317
317
@@ -332,7 +332,8 @@ and a Twitter client using it:
332
332
333
333
<services >
334
334
<service id =" rot13_transformer" class =" Acme\Rot13Transformer" />
335
- <service id =" Acme\TransformerInterface" alias =" rot13_transformer" />
335
+
336
+ <service id="Acme\T ransformerInterface" alias="rot13_transformer" />
336
337
337
338
<service id="twitter_client" class="Acme\T witterClient" autowire="true" />
338
339
@@ -384,8 +385,8 @@ to use which leads to errors like this:
384
385
Fortunately, the FQCN alias is here to specify which implementation
385
386
to use by default.
386
387
387
- .. versionadded :: 3.2
388
- Using FQCN aliases to fix autowiring ambiguities is allowed since Symfony
388
+ .. versionadded :: 3.3
389
+ Using FQCN aliases to fix autowiring ambiguities is allowed since Symfony
389
390
3.3. Prior to version 3.3, you needed to use the ``autowiring_types `` key.
390
391
391
392
Thanks to this alias, the ``rot13_transformer `` service is automatically injected
You can’t perform that action at this time.
0 commit comments