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``.
251
251
252
252
.. caution ::
253
253
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.
257
258
258
259
.. tip ::
259
260
@@ -267,7 +268,7 @@ key and define the type as ``constant``.
267
268
268
269
.. note ::
269
270
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 .
271
272
272
273
PHP Keywords in XML
273
274
-------------------
You can’t perform that action at this time.
0 commit comments