From 27f6d7375c21d21d981ba6152cd62680dcb3bf1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandru=20Furculita=20=E2=99=BB?= Date: Tue, 8 Aug 2017 17:01:39 +0300 Subject: [PATCH 1/3] Update parameters.rst --- service_container/parameters.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/service_container/parameters.rst b/service_container/parameters.rst index 0884e34712d..591f026d325 100644 --- a/service_container/parameters.rst +++ b/service_container/parameters.rst @@ -243,8 +243,9 @@ Constants as Parameters ----------------------- Setting PHP constants as parameters is also supported. -To take advantage of this feature, map the name of your constant to a parameter -key and define the type as ``constant``. +For the XML format, you need to map the name of your constant to a parameter +key and define the type as ``constant``. For the YAML format, you need to prefix +the name of your constant with ``!php/const:``. .. configuration-block:: From 65e8f9f3e4ebe996d93366b2162d5bad9c836942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandru=20Furculita=20=E2=99=BB?= Date: Wed, 9 Aug 2017 21:31:16 +0300 Subject: [PATCH 2/3] Update parameters.rst --- service_container/parameters.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/service_container/parameters.rst b/service_container/parameters.rst index 591f026d325..62c95fb0e23 100644 --- a/service_container/parameters.rst +++ b/service_container/parameters.rst @@ -244,8 +244,7 @@ Constants as Parameters Setting PHP constants as parameters is also supported. For the XML format, you need to map the name of your constant to a parameter -key and define the type as ``constant``. For the YAML format, you need to prefix -the name of your constant with ``!php/const:``. +key and define the type as ``constant``: .. configuration-block:: From a329142656c68402020244407007fb6b6a5d2400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandru=20Furculita=20=E2=99=BB?= Date: Sat, 12 Aug 2017 11:50:09 +0300 Subject: [PATCH 3/3] Update parameters.rst --- service_container/parameters.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/service_container/parameters.rst b/service_container/parameters.rst index 62c95fb0e23..c0750731595 100644 --- a/service_container/parameters.rst +++ b/service_container/parameters.rst @@ -242,9 +242,7 @@ See :doc:`/configuration/external_parameters`. Constants as Parameters ----------------------- -Setting PHP constants as parameters is also supported. -For the XML format, you need to map the name of your constant to a parameter -key and define the type as ``constant``: +Setting PHP constants as parameters is also supported: .. configuration-block::