@@ -216,8 +216,8 @@ adding a service alias:
216
216
# ...
217
217
218
218
# but this fixes it!
219
- # the `` app.rot13.transformer`` service will be injected when
220
- # an `` App\Util\Rot13Transformer`` type-hint is detected
219
+ # the " app.rot13.transformer" service will be injected when
220
+ # an App\Util\Rot13Transformer type-hint is detected
221
221
App\Util\Rot13Transformer : ' @app.rot13.transformer'
222
222
223
223
.. code-block :: xml
@@ -251,8 +251,8 @@ adding a service alias:
251
251
->autowire();
252
252
253
253
// but this fixes it!
254
- // the `` app.rot13.transformer`` service will be injected when
255
- // an `` App\Util\Rot13Transformer`` type-hint is detected
254
+ // the " app.rot13.transformer" service will be injected when
255
+ // an App\Util\Rot13Transformer type-hint is detected
256
256
$services->alias(Rot13Transformer::class, 'app.rot13.transformer');
257
257
};
258
258
@@ -355,8 +355,8 @@ To fix that, add an :ref:`alias <service-autowiring-alias>`:
355
355
356
356
$services->set(Rot13Transformer::class);
357
357
358
- // the `` App\Util\Rot13Transformer`` service will be injected when
359
- // an `` App\Util\TransformerInterface`` type-hint is detected
358
+ // the App\Util\Rot13Transformer service will be injected when
359
+ // an App\Util\TransformerInterface type-hint is detected
360
360
$services->alias(TransformerInterface::class, Rot13Transformer::class);
361
361
};
362
362
@@ -526,13 +526,13 @@ the injection::
526
526
$services->set(Rot13Transformer::class)->autowire();
527
527
$services->set(UppercaseTransformer::class)->autowire();
528
528
529
- // the `` App\Util\UppercaseTransformer`` service will be
530
- // injected when an `` App\Util\TransformerInterface``
531
- // type-hint for a `` $shoutyTransformer`` argument is detected.
529
+ // the App\Util\UppercaseTransformer service will be
530
+ // injected when an App\Util\TransformerInterface
531
+ // type-hint for a $shoutyTransformer argument is detected.
532
532
$services->alias(TransformerInterface::class.' $shoutyTransformer', UppercaseTransformer::class);
533
533
534
534
// If the argument used for injection does not match, but the
535
- // type-hint still matches, the `` App\Util\Rot13Transformer``
535
+ // type-hint still matches, the App\Util\Rot13Transformer
536
536
// service will be injected.
537
537
$services->alias(TransformerInterface::class, Rot13Transformer::class);
538
538
0 commit comments