@@ -427,29 +427,29 @@ of the ``key`` tag attribute (as defined in the ``index_by`` locator option):
427427 <container xmlns =" http://symfony.com/schema/dic/services"
428428 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
429429 xsi : schemaLocation =" http://symfony.com/schema/dic/services
430- http ://symfony.com/schema/dic/services/services-1.0.xsd" >
430+ https ://symfony.com/schema/dic/services/services-1.0.xsd" >
431431
432432 <services >
433433 <service id =" App\Handler\One" >
434- <tag name =" app.handler" key =" handler_one" />
434+ <tag name =" app.handler" key =" handler_one" />
435435 </service >
436436
437437 <service id =" App\Handler\Two" >
438- <tag name =" app.handler" key =" handler_two" />
438+ <tag name =" app.handler" key =" handler_two" />
439439 </service >
440440
441441 <service id =" App\HandlerCollection" >
442442 <!-- inject all services tagged with app.handler as first argument -->
443- <argument type =" tagged_locator" tag =" app.handler" index-by =" key" />
443+ <argument type =" tagged_locator" tag =" app.handler" index-by =" key" />
444444 </service >
445445 </services >
446446 </container >
447447
448448 .. code-block :: php
449449
450450 // config/services.php
451- use Symfony\Component\DependencyInjection\Argument\TaggedIteratorArgument;
452451 use Symfony\Component\DependencyInjection\Argument\ServiceLocatorArgument;
452+ use Symfony\Component\DependencyInjection\Argument\TaggedIteratorArgument;
453453
454454 $container->register(App\Handler\One::class)
455455 ->addTag('app.handler', ['key' => 'handler_one']);
@@ -517,14 +517,14 @@ attribute to the locator service defining the name of this custom method:
517517 <container xmlns =" http://symfony.com/schema/dic/services"
518518 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
519519 xsi : schemaLocation =" http://symfony.com/schema/dic/services
520- http ://symfony.com/schema/dic/services/services-1.0.xsd" >
520+ https ://symfony.com/schema/dic/services/services-1.0.xsd" >
521521
522522 <services >
523523
524524 <!-- ... -->
525525
526526 <service id =" App\HandlerCollection" >
527- <argument type =" tagged_locator" tag =" app.handler" default-index-method =" myOwnMethodName" />
527+ <argument type =" tagged_locator" tag =" app.handler" default-index-method =" myOwnMethodName" />
528528 </service >
529529 </services >
530530 </container >
0 commit comments