Is it possible to create multiple Twig extension ? Because when I add a second one, I get the error message that the first extension method is not existing in the second extension.
Here is how my extension are defined in services.xml :
<service id="acme.extension.view_helper" class="FLS\AcmeBundle\Extension\ViewHelperExtension">
<argument type="service" id="doctrine.orm.entity_manager" />
<tag name="twig.extension" />
</service>
<service id="acme.extension.stats_helper" class="FLS\AcmeBundle\Extension\StatsExtension">
<argument type="service" id="doctrine.orm.entity_manager" />
<tag name="twig.extension" />
</service>
And here is the error message :
Fatal error: Call to undefined method FLS\AcmeBundle\Extension\StatsExtension::findTask() in F:\www\AcmeBundle\app\cache\dev\twig\fe\fd\4ff31bf8efd0669b6d0b2a14ba11.php on line 232
The findTask method is defined in ViewHelperExtension.
Thanks in advance!