Commit a7effb8 1 parent 7c60ea1 commit a7effb8 Copy full SHA for a7effb8
File tree 1 file changed +3
-10
lines changed
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -135,16 +135,9 @@ It may also be convenient to use the
135
135
136
136
$yaml = Yaml::parse(file_get_contents('/path/to/file.yml'));
137
137
138
- The :method: `Symfony\\ Component\\ Yaml\\ Yaml::parse ` static method takes a YAML
139
- string or a file containing YAML. Internally, it calls the
140
- :method: `Symfony\\ Component\\ Yaml\\ Parser::parse ` method, but enhances the
141
- error if something goes wrong by adding the filename to the message.
142
-
143
- .. caution ::
144
-
145
- Because it is currently possible to pass a filename to this method, you
146
- must validate the input first. Passing a filename is deprecated in
147
- Symfony 2.2, and will be removed in Symfony 3.0.
138
+ The :method: `Symfony\\ Component\\ Yaml\\ Yaml::parse ` static method takes a YAML string.
139
+ Internally, it constructs a :class: `Symfony\\ Component\\ Yaml\\ Parser ` object and calls
140
+ the :method: `Symfony\\ Component\\ Yaml\\ Parser::parse ` method.
148
141
149
142
.. _components-yaml-dump :
150
143
You can’t perform that action at this time.
0 commit comments