public static function buildTemplating(ContainerInterface $container)
    {
        $factory = new TwigFactory(
            $container->getParameter('kernel.template_dir'),
            $container->getParameter('kernel.cache_dir'),
            $container->getParameter('kernel.env')
        );

        return($factory->getServiceClass());
    }
public static function buildTemplating(ContainerInterface $container)
    {
        $factory = new TwigFactory(
            $container->getParameter('kernel.template_dir'),
            $container->getParameter('kernel.cache_dir'),
            $container->getParameter('kernel.env')
        );

        return($factory->getServiceClass());
    }
public static function buildTemplating ( ContainerInterface $ container ) { $ factory = new TwigFactory ( $ container -> getParameter ( 'kernel.template_dir' ) , $ container -> getParameter ( 'kernel.cache_dir' ) , $ container -> getParameter ( 'kernel.env' ) ) ; return ( $ factory -> getServiceClass ( ) ) ; }
buildTemplating
Build the twig templating service

@return \Twig_Environment $twig
buildTemplating Build the twig templating service