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
Nicolas Grekas ab1fab2911 Merge branch '2.7' into 2.8
* 2.7:
  [Console] Add missing `@require` annotation in test
  Fix merge
  [appveyor] Fix failure reporting
  [#17634] move DebugBundle license file
  backport GlobTest from 2.7 branch
  Move licenses according to new best practices
  [FrameworkBundle] Remove unused code in test
  [2.3] Fixed an undefined variable in Glob::toRegex
  simplified a test
  fix container cache key generation
  [Form] fix option name in changelog
  [Translation] Add resources from fallback locale
  [DependencyInjection] enforce tags to have a name
  [YAML] Refine the return value of Yaml::parse()

Conflicts:
	src/Symfony/Component/DependencyInjection/Tests/Loader/YamlFileLoaderTest.php
2016-02-02 10:49:18 +01:00
..
Exception remove api tags from code 2015-09-28 19:11:22 +02:00
Tests minor #17480 Static code analysis (Koc) 2016-01-27 05:57:57 +01:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
CHANGELOG.md [Yaml] more fixes to changelog and upgrade files 2015-11-27 22:31:42 +01:00
composer.json Merge branch '2.7' into 2.8 2015-10-30 13:15:42 -07:00
Dumper.php Docblock fixes 2014-11-30 13:33:44 +00:00
Escaper.php Merge branch '2.7' into 2.8 2016-01-21 10:05:51 +01:00
Inline.php Merge branch '2.7' into 2.8 2016-01-24 12:06:16 +01:00
LICENSE Update copyright year 2016-01-01 23:53:47 -03:00
Parser.php bug #17197 [Yaml] cast arrays to objects after parsing has finished (xabbuh) 2016-01-04 17:50:38 +01:00
phpunit.xml.dist Add missing exclusions from phpunit.xml.dist 2015-11-18 09:19:46 +01:00
README.md renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
Unescaper.php fixed CS 2016-01-21 10:24:53 +01:00
Yaml.php Merge branch '2.3' into 2.7 2016-01-31 08:56:20 +01:00

Yaml Component

YAML implements most of the YAML 1.2 specification.

use Symfony\Component\Yaml\Yaml;

$array = Yaml::parse(file_get_contents(filename));

print Yaml::dump($array);

Resources

You can run the unit tests with the following command:

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