I see that the Twig_Loader_String class has been deprecated and will be removed in Twig 2.0. Also, the comments in the source indicate that it should \"NEVE
Twig_Loader_String
$environment = new \Twig_Environment(new \Twig_Loader_Array(array())); $template = $environment->createTemplate('{{ template }} {{ replacements }}'); echo $template->render([replacements]);