File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -134,20 +134,6 @@ string or a file containing YAML. Internally, it calls the
134
134
:method: `Symfony\\ Component\\ Yaml\\ Parser::parse ` method, but enhances the
135
135
error if something goes wrong by adding the filename to the message.
136
136
137
- Executing PHP Inside YAML Files
138
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
139
-
140
- .. versionadded :: 2.1
141
- The ``Yaml::enablePhpParsing() `` method is new to Symfony 2.1. Prior to 2.1,
142
- PHP was *always * executed when calling the ``parse() `` function.
143
-
144
- By default, if you include PHP inside a YAML file, it will not be parsed.
145
- If you do want PHP to be parsed, you must call ``Yaml::enablePhpParsing() ``
146
- before parsing the file to activate this mode. If you only want to allow
147
- PHP code for a single YAML file, be sure to disable PHP parsing after parsing
148
- the single file by calling ``Yaml::$enablePhpParsing = false; `` (``$enablePhpParsing ``
149
- is a public property).
150
-
151
137
Writing YAML Files
152
138
~~~~~~~~~~~~~~~~~~
153
139
You can’t perform that action at this time.
0 commit comments