2 ), $opt); $yaml = new sfYamlDumper(); return $yaml->dump($struct, $opt['inline']); } function yaml_sfyaml_decode($input) { require_once _DIR_PLUGIN_YAML.'sfyaml/sfYaml.php'; require_once _DIR_PLUGIN_YAML.'sfyaml/sfYamlParser.php'; $yaml = new sfYamlParser(); try { $ret = $yaml->parse($input); } catch (Exception $e) { throw new InvalidArgumentException(sprintf('Unable to parse string: %s', $e->getMessage())); } return $ret; } ?>