i have a problem with custom twig extension which need to generate url acccording routs
i just need to know how to add router to the constructor of my twig extension , symfony routing extension looks like this <service id="twig.extension.routing" class="Symfony\Bridge\Twig \Extension\RoutingExtension" public="false"> <tag name="twig.extension" /> <argument type="service" id="router" /> // and i dont know how to add this line in my extension (below) </service> src\myvendor\mybundle\dependencyijection\ownextension.php class OwnExtension extends Extension { public function load(array $config, ContainerBuilder $container) { $definition = new Definition('foo\faa\Extension\own'); $definition->addTag('twig.extension'); //add <argument type="service" id="router" /> but dont know how ? } can anybody help me? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en