loadFromExtension('twig', array( 'form_themes' => array( 'MyBundle::form.html.twig', ), 'globals' => array( 'foo' => '@bar', 'baz' => '@@qux', 'pi' => 3.14, 'bad' => array('key' => 'foo'), ), 'auto_reload' => true, 'autoescape' => true, 'base_template_class' => 'stdClass', 'cache' => '/tmp', 'charset' => 'ISO-8859-1', 'debug' => true, 'strict_variables' => true, 'paths' => array( 'path1', 'path2', 'namespaced_path1' => 'namespace1', 'namespaced_path2' => 'namespace2', ), ));