mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-16 14:36:26 +02: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.
303 B
Executable File
303 B
Executable File
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