class RoutingExtension extends Twig_Extension
Provides integration of the Routing component with Twig.
Methods
__construct(UrlGeneratorInterface $generator)
array getFunctions() Returns a list of functions to add to the existing list.
getPath($name, $parameters = array(), $relative = false)
getUrl($name, $parameters = array(), $schemeRelative = false)
array isUrlGenerationSafe(Twig_Node $argsNode) Determines at compile time whether the generated URL will be safe an