silverstripe-framework/thirdparty/sfYaml
Ingo Schommer 3a01c2ab2e MINOR Updated sfYaml parser dependency to 2.0.14, use it in ConfigManifest and i18nTextCollector
Changed class loading to new file structure, moved dependency to framework/thirdparty,
rather than relying on "second level" dependencies through Zend_Translate_RailsYAML.
To be replaced by a composer dependency (+ proper autoloading) once in place.
2012-06-20 14:06:21 +02:00
..
Exception MINOR Updated sfYaml parser dependency to 2.0.14, use it in ConfigManifest and i18nTextCollector 2012-06-20 14:06:21 +02:00
composer.json MINOR Updated sfYaml parser dependency to 2.0.14, use it in ConfigManifest and i18nTextCollector 2012-06-20 14:06:21 +02:00
Dumper.php MINOR Updated sfYaml parser dependency to 2.0.14, use it in ConfigManifest and i18nTextCollector 2012-06-20 14:06:21 +02:00
Escaper.php MINOR Updated sfYaml parser dependency to 2.0.14, use it in ConfigManifest and i18nTextCollector 2012-06-20 14:06:21 +02:00
Inline.php MINOR Updated sfYaml parser dependency to 2.0.14, use it in ConfigManifest and i18nTextCollector 2012-06-20 14:06:21 +02:00
LICENSE MINOR Updated sfYaml parser dependency to 2.0.14, use it in ConfigManifest and i18nTextCollector 2012-06-20 14:06:21 +02:00
Parser.php MINOR Updated sfYaml parser dependency to 2.0.14, use it in ConfigManifest and i18nTextCollector 2012-06-20 14:06:21 +02:00
README.md MINOR Updated sfYaml parser dependency to 2.0.14, use it in ConfigManifest and i18nTextCollector 2012-06-20 14:06:21 +02:00
Unescaper.php MINOR Updated sfYaml parser dependency to 2.0.14, use it in ConfigManifest and i18nTextCollector 2012-06-20 14:06:21 +02:00
Yaml.php MINOR Updated sfYaml parser dependency to 2.0.14, use it in ConfigManifest and i18nTextCollector 2012-06-20 14:06:21 +02:00

Yaml Component

YAML implements most of the YAML 1.2 specification.

use Symfony\Component\Yaml\Yaml;

$array = Yaml::parse($file);

print Yaml::dump($array);

Resources

Unit tests:

https://github.com/symfony/symfony/tree/master/tests/Symfony/Tests/Component/Yaml