minor #13212 [Yaml] Update README.md (xelaris)

This PR was merged into the 2.3 branch.

Discussion
----------

[Yaml] Update README.md

| Q             | A
| ------------- | ---
| Fixed tickets |
| License       | MIT

The ability to pass file names to Yaml::parse() was deprecated in 2.2 and will be removed in 3.0. So show an up-to-date example.

Commits
-------

bab98f0 [Yaml] Update README.md
This commit is contained in:
Fabien Potencier 2015-01-03 13:39:27 +01:00
commit 36e05e9bf4
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ YAML implements most of the YAML 1.2 specification.
```php
use Symfony\Component\Yaml\Yaml;
$array = Yaml::parse($file);
$array = Yaml::parse(file_get_contents(filename));
print Yaml::dump($array);
```