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 67d9253127 Merge branch '2.1'
* 2.1:
  added missing use statment (closes #5825)
  Code cleanup
  [WebProfilerBundle] Fixed the use of nested macros
  Removed unused use statements.
  Nsdocblocks
  [ConfigDumpReference] avoid notice for variable nodes
  fixed fallback locale
  UniqueValidatorTest, Change message on assertions
  Documented removed _form_is_choice_group function

Conflicts:
	src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php
	src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php
2012-10-24 17:41:27 +02:00
..
Exception [Yaml] Normalize exceptions 2012-08-30 21:55:18 +02:00
Tests fixed CS 2012-07-09 14:54:20 +02:00
.gitattributes [2.1] Exclude tests from zips via gitattributes 2012-10-04 17:17:57 +02:00
CHANGELOG.md [Yaml] added CHANGELOG 2012-04-26 19:44:03 +02:00
composer.json Optimize autoload prefix in composer.json 2012-09-28 09:34:16 +02:00
Dumper.php Force the value of Dumper::setIndentation($num) to be of type integer. 2012-08-07 09:40:56 +02:00
Escaper.php fixed CS 2012-07-09 14:54:20 +02:00
Inline.php fixed CS 2012-07-09 14:54:20 +02:00
LICENSE Updated LICENSE files copyright 2012-02-22 10:10:37 +01:00
Parser.php Nsdocblocks 2012-10-20 09:10:30 +02:00
phpunit.xml.dist [Components] Tests/Autoloading fixes 2012-05-01 17:51:41 +02:00
README.md [Components] Tests/Autoloading fixes 2012-05-01 17:51:41 +02:00
Unescaper.php [Yaml] Normalize exceptions 2012-08-30 21:55:18 +02:00
Yaml.php Added Yaml\Dumper::setIndentation() method to allow a custom indentation level of nested nodes. 2012-08-05 08:07:18 +02: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:

phpunit