@@ -93,8 +93,7 @@ And then register it as a tagged service:
93
93
services :
94
94
app.custom_assetic_worker :
95
95
class : AppBundle\Assetic\CustomWorker
96
- tags :
97
- - { name: assetic.factory_worker }
96
+ tags : [assetic.factory_worker]
98
97
99
98
.. code-block :: xml
100
99
@@ -469,8 +468,7 @@ Then register this class and tag it with ``kernel.cache_clearer``:
469
468
services :
470
469
my_cache_clearer :
471
470
class : AppBundle\Cache\MyClearer
472
- tags :
473
- - { name: kernel.cache_clearer }
471
+ tags : [kernel.cache_clearer]
474
472
475
473
.. code-block :: xml
476
474
@@ -640,8 +638,7 @@ configuration and tag it with ``kernel.event_subscriber``:
640
638
services :
641
639
app.custom_subscriber :
642
640
class : AppBundle\EventListener\CustomSubscriber
643
- tags :
644
- - { name: kernel.event_subscriber }
641
+ tags : [kernel.event_subscriber]
645
642
646
643
.. code-block :: xml
647
644
@@ -771,8 +768,7 @@ You can add a processor globally:
771
768
services :
772
769
my_service :
773
770
class : Monolog\Processor\IntrospectionProcessor
774
- tags :
775
- - { name: monolog.processor }
771
+ tags : [monolog.processor]
776
772
777
773
.. code-block :: xml
778
774
@@ -895,8 +891,7 @@ of your configuration and tag it with ``routing.loader``:
895
891
services :
896
892
app.custom_routing_loader :
897
893
class : AppBundle\Routing\CustomLoader
898
- tags :
899
- - { name: routing.loader }
894
+ tags : [routing.loader]
900
895
901
896
.. code-block :: xml
902
897
@@ -1297,8 +1292,7 @@ configuration and tag it with ``twig.extension``:
1297
1292
services :
1298
1293
app.twig_extension :
1299
1294
class : AppBundle\Twig\AppExtension
1300
- tags :
1301
- - { name: twig.extension }
1295
+ tags : [twig.extension]
1302
1296
1303
1297
.. code-block :: xml
1304
1298
@@ -1343,8 +1337,7 @@ also have to be added as regular services:
1343
1337
services :
1344
1338
twig.extension.intl :
1345
1339
class : Twig_Extensions_Extension_Intl
1346
- tags :
1347
- - { name: twig.extension }
1340
+ tags : [twig.extension]
1348
1341
1349
1342
.. code-block :: xml
1350
1343
0 commit comments