Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e7e7cb1

Browse files
committed
updated doc
1 parent 9c0e585 commit e7e7cb1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reference/YAML.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ occurred::
4848
different YAML strings.
4949

5050
When loading a YAML file, it is sometimes better to use the
51-
:method:`Symfony\\Component\\Yaml\\Yaml::load` wrapper method::
51+
:method:`Symfony\\Component\\Yaml\\Yaml::parse` wrapper method::
5252

5353
use Symfony\Component\Yaml\Yaml;
5454

55-
$loader = Yaml::load('/path/to/file.yml');
55+
$loader = Yaml::parse('/path/to/file.yml');
5656

57-
The ``Yaml::load()`` static method takes a YAML string or a file containing
57+
The ``Yaml::parse()`` static method takes a YAML string or a file containing
5858
YAML. Internally, it calls the ``Parser::parse()`` method, but with some added
5959
bonuses:
6060

0 commit comments

Comments
 (0)