File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -251,9 +251,10 @@ key and define the type as ``constant``.
251251
252252 .. caution ::
253253
254- It's also possible to use PHP constants in YAML files using expression language.
255- You must have :doc: `/components/expression_language ` installed.
256- To learn more about the expression language syntax, see :doc: `/components/expression_language/syntax `.
254+ YAML files can refer to PHP constants via the ``@=constant('CONSTANT_NAME') ``
255+ syntax, which is provided by the
256+ :doc: `Expression Language component /components/expression_language `. See
257+ :doc: `/components/expression_language/syntax ` to learn more about its syntax.
257258
258259.. tip ::
259260
@@ -267,7 +268,7 @@ key and define the type as ``constant``.
267268
268269 .. note ::
269270
270- In Symfony 3.2 YAML support PHP constants.
271+ In Symfony 3.2, YAML supports PHP constants via the `` !php/const:CONSTANT_NAME `` syntax .
271272
272273PHP Keywords in XML
273274-------------------
You can’t perform that action at this time.
0 commit comments