File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 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
135135
136136 $yaml = Yaml::parse(file_get_contents('/path/to/file.yml'));
137137
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.
148141
149142.. _components-yaml-dump :
150143
You can’t perform that action at this time.
0 commit comments