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
Try it
$template = $this->container->get('twig')->createTemplate('hello {{ name }}'); echo $template->render(array('name' => 'Fabien'));