Skip to content

Commit 74f9a1f

Browse files
committed
removed docs on PHP parsing in YAML files
1 parent 441e766 commit 74f9a1f

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

components/yaml/introduction.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -134,20 +134,6 @@ string or a file containing YAML. Internally, it calls the
134134
:method:`Symfony\\Component\\Yaml\\Parser::parse` method, but enhances the
135135
error if something goes wrong by adding the filename to the message.
136136

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-
151137
Writing YAML Files
152138
~~~~~~~~~~~~~~~~~~
153139

0 commit comments

Comments
 (0)