@@ -93,8 +93,7 @@ And then register it as a tagged service:
9393 services :
9494 app.custom_assetic_worker :
9595 class : AppBundle\Assetic\CustomWorker
96- tags :
97- - { name: assetic.factory_worker }
96+ tags : [assetic.factory_worker]
9897
9998 .. code-block :: xml
10099
@@ -469,8 +468,7 @@ Then register this class and tag it with ``kernel.cache_clearer``:
469468 services :
470469 my_cache_clearer :
471470 class : AppBundle\Cache\MyClearer
472- tags :
473- - { name: kernel.cache_clearer }
471+ tags : [kernel.cache_clearer]
474472
475473 .. code-block :: xml
476474
@@ -640,8 +638,7 @@ configuration and tag it with ``kernel.event_subscriber``:
640638 services :
641639 app.custom_subscriber :
642640 class : AppBundle\EventListener\CustomSubscriber
643- tags :
644- - { name: kernel.event_subscriber }
641+ tags : [kernel.event_subscriber]
645642
646643 .. code-block :: xml
647644
@@ -771,8 +768,7 @@ You can add a processor globally:
771768 services :
772769 my_service :
773770 class : Monolog\Processor\IntrospectionProcessor
774- tags :
775- - { name: monolog.processor }
771+ tags : [monolog.processor]
776772
777773 .. code-block :: xml
778774
@@ -895,8 +891,7 @@ of your configuration and tag it with ``routing.loader``:
895891 services :
896892 app.custom_routing_loader :
897893 class : AppBundle\Routing\CustomLoader
898- tags :
899- - { name: routing.loader }
894+ tags : [routing.loader]
900895
901896 .. code-block :: xml
902897
@@ -1297,8 +1292,7 @@ configuration and tag it with ``twig.extension``:
12971292 services :
12981293 app.twig_extension :
12991294 class : AppBundle\Twig\AppExtension
1300- tags :
1301- - { name: twig.extension }
1295+ tags : [twig.extension]
13021296
13031297 .. code-block :: xml
13041298
@@ -1343,8 +1337,7 @@ also have to be added as regular services:
13431337 services :
13441338 twig.extension.intl :
13451339 class : Twig_Extensions_Extension_Intl
1346- tags :
1347- - { name: twig.extension }
1340+ tags : [twig.extension]
13481341
13491342 .. code-block :: xml
13501343
0 commit comments