2850fca233
* 2.1: [FrameworkBundle] Fixes invalid serialized objects in cache remove dead code in yaml component fixed typo RedisProfilerStorage wrong db-number/index-number selected [DependencyInjection] added a test for the previous merge (refs #7261) Unset loading[$id] in ContainerBuilder on exception [Console] fixed StringInput binding [Console] added string input test Revert "merged branch jfsimon/issue-6749 (PR #7220)" fixed CS Conflicts: src/Symfony/Component/Console/Tests/Input/StringInputTest.php src/Symfony/Component/HttpKernel/Profiler/RedisProfilerStorage.php |
||
---|---|---|
.. | ||
Exception | ||
Tests | ||
.gitignore | ||
CHANGELOG.md | ||
composer.json | ||
Dumper.php | ||
Escaper.php | ||
Inline.php | ||
LICENSE | ||
Parser.php | ||
phpunit.xml.dist | ||
README.md | ||
Unescaper.php | ||
Yaml.php |
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
You can run the unit tests with the following command:
$ cd path/to/Symfony/Component/Yaml/
$ composer.phar install --dev
$ phpunit