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 6a63cc5fc7 Merge branch '2.6' into 2.7
* 2.6:
  Extract an AbstractEventDispatcherTest from EventDispatcherTest and also use it in ContainerAwareEventDispatcherTest
  [SecurityBundle] Authentication entry point is only registered with firewall exception listener, not with authentication listeners
  be smarter when guessing the document root
  Azerbaijani locale
  Fixed grammar error in docblock
  [HttpKernel] fix parse error in DumpDataCollector
  [TwigBundle/DebugBundle] move dump extension & cleanups
  Adjust upgrade file rendering
  [Bridge/Propel1] Changed deps to accepts all upcoming propel1 versions
  compare version using PHP_VERSION_ID
  [Form] Add doc for FormEvents
  *_timezone changes also affect the BirthdayType
  don't override internal PHP constants
  Drop support for model_timezone and view_timezone options in TimeType and DateType.
  [DomCrawler] Added support for link tags in the Link class
  [Session] Fix parameter names in WriteCheckSessionHandler
  Add consistency with request type checking
  [FrameworkBundle] Fix server run in case the router script does not exist
2014-11-20 14:24:30 +01:00
..
Exception compare version using PHP_VERSION_ID 2014-11-17 17:27:42 +01:00
Tests Merge branch '2.5' into 2.6 2014-11-20 14:24:23 +01:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
CHANGELOG.md [Yaml] added CHANGELOG 2012-04-26 19:44:03 +02:00
composer.json updated version to 2.7 2014-11-10 19:00:54 +01:00
Dumper.php fixed types in phpdocs 2014-04-16 12:30:19 +02:00
Escaper.php Remove aligned '=>' and '=' 2014-10-26 08:30:58 +01:00
Inline.php [Yaml] Ensure whole number floats have their data type is persisted. 2014-10-05 15:53:47 +02:00
LICENSE update year on licenses 2014-01-07 08:19:25 -05:00
Parser.php Merge branch '2.5' 2014-11-03 04:55:50 +01:00
phpunit.xml.dist removed defaults from PHPUnit configuration 2014-07-07 12:13:42 +02:00
README.md [Doc] Use Markdown syntax highlighting 2014-10-01 07:38:33 +02:00
Unescaper.php fixed CS 2014-09-22 10:32:35 +02:00
Yaml.php made phpdoc types consistent with those defined in Hack 2014-04-15 07:41:45 +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:

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