score:3

Accepted answer

tags must be an array. just put a - before { name: ...}

tagformater_extension:
    class: AppBundle\Twig\tagformaterExtension
    arguments: ["@tags_service"]
    public: false
    tags:
        - { name: twig.extension }

Related Query

More Query from same tag