I have written a small twig extension which deliever some functions.
This extension is bundled and I want to expose it as service of the bundle, so I have created the services.yml:
services:
twig.job_action_extension:
class: WebBundle\Template\JobActionExtension
arguments: ["@translator"]
tags:
- { name: twig.extension }
But it seems that the extension is never exposed.
Running php app/console container:debug
doesn't list my service.
Isn't it possible to register a twig extension as service like here?
Or do I need to create an extension under DependencyInjection like here if I want to contribute it as part of my bundle?