Skip to content

Commit 6d0de9d

Browse files
Minor rewords
1 parent 79191bf commit 6d0de9d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

service_container/parameters.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

272273
PHP Keywords in XML
273274
-------------------

0 commit comments

Comments
 (0)