mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
3a01c2ab2e
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.
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