mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +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.
18 lines
303 B
Markdown
Executable File
18 lines
303 B
Markdown
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
|