This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Yaml
Fabien Potencier feaee3615f Merge branch '2.2'
* 2.2: (26 commits)
  [FrameworkBundle] Fixes invalid serialized objects in cache
  remove dead code in yaml component
  Fixed typo in UPGRADE-2.2
  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
  Default validation message translation fix.
  remove() should not use deprecated getParent() so it does not trigger deprecation internally
  adjust routing tests to not use prefix in addCollection
  add test for uniqueness of resources
  added tests for addDefaults, addRequirements, addOptions
  adjust RouteCollectionTest for the addCollection change and refactor the tests to only skip the part that really needs the config component
  added tests for remove() that wasnt covered yet and special route name
  refactor interator test that was still assuming a tree
  adjust tests to no use addPrefix with options
  adjusted tests to not use RouteCollection::getPrefix
  [Routing] trigger deprecation warning for deprecated features that will be removed in 2.3
  [Console] fixed StringInput binding
  [Console] added string input test
  ...
2013-03-06 18:50:21 +01:00
..
Exception [Yaml] Normalize exceptions 2012-08-30 21:55:18 +02:00
Tests Merge branch '2.1' 2013-01-23 21:21:00 +01:00
.gitignore made usage of Composer autoloader for subtree-split unit tests 2012-11-09 14:10:06 +01:00
CHANGELOG.md [Yaml] added CHANGELOG 2012-04-26 19:44:03 +02:00
composer.json updated the branch alias in composer files 2013-01-31 22:39:01 +01:00
Dumper.php Merge branch '2.1' 2013-01-17 22:22:20 +01:00
Escaper.php merged branch jakzal/yamlDoubleQuotesDumperFix (PR #4320) 2012-10-29 12:15:41 +01:00
Inline.php Merge branch '2.1' into 2.2 2013-03-06 18:38:49 +01:00
LICENSE updated license year 2013-01-04 17:59:43 +01:00
Parser.php Merge branch '2.0' into 2.1 2013-01-22 08:14:57 +01:00
phpunit.xml.dist made usage of Composer autoloader for subtree-split unit tests 2012-11-09 14:10:06 +01:00
README.md made usage of Composer autoloader for subtree-split unit tests 2012-11-09 14:10:06 +01:00
Unescaper.php [Yaml] Normalize exceptions 2012-08-30 21:55:18 +02:00
Yaml.php Merge branch '2.1' 2013-01-27 17:49:19 +01: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

You can run the unit tests with the following command:

$ cd path/to/Symfony/Component/Yaml/
$ composer.phar install --dev
$ phpunit