From 4436dae9690310bafdc8479d045e0d4ed946346e Mon Sep 17 00:00:00 2001 From: Luis Cordova Date: Mon, 6 Jan 2014 13:37:56 -0500 Subject: [PATCH 1/3] add warning for inifile loader --- components/config/introduction.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/config/introduction.rst b/components/config/introduction.rst index 047ff599cc0..80792be075c 100644 --- a/components/config/introduction.rst +++ b/components/config/introduction.rst @@ -12,6 +12,13 @@ The Config component provides several classes to help you find, load, combine, autofill and validate configuration values of any kind, whatever their source may be (YAML, XML, INI files, or for instance a database). +.. caution:: + + ``IniFileLoader`` parses with the `parse_ini_file` function, therefore + it can only configure parameters as string values. For other + data types support (e.g. Boolean, integer, etc), the other loaders + are recommended. + Installation ------------ From dd3dd709c91e47c480c957d5d8a129bb1f390075 Mon Sep 17 00:00:00 2001 From: Luis Cordova Date: Fri, 10 Jan 2014 17:51:10 -0500 Subject: [PATCH 2/3] address comments, even the Boolean one --- components/config/introduction.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/config/introduction.rst b/components/config/introduction.rst index 80792be075c..894d78c5914 100644 --- a/components/config/introduction.rst +++ b/components/config/introduction.rst @@ -14,9 +14,9 @@ may be (YAML, XML, INI files, or for instance a database). .. caution:: - ``IniFileLoader`` parses with the `parse_ini_file` function, therefore - it can only configure parameters as string values. For other - data types support (e.g. Boolean, integer, etc), the other loaders + The ``IniFileLoader`` parses with the :phpfunction:`parse_ini_file` function, + therefore, you can only set parameters to string values. To set parameters + to other data types (e.g. boolean, integer, etc), the other loaders are recommended. Installation From 4f02a8a551c311cf38c274cb41ffb0f4c6ab2ba0 Mon Sep 17 00:00:00 2001 From: Luis Cordova Date: Fri, 10 Jan 2014 18:24:37 -0500 Subject: [PATCH 3/3] address comments --- components/config/introduction.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/config/introduction.rst b/components/config/introduction.rst index 894d78c5914..89eb4beaec9 100644 --- a/components/config/introduction.rst +++ b/components/config/introduction.rst @@ -14,10 +14,10 @@ may be (YAML, XML, INI files, or for instance a database). .. caution:: - The ``IniFileLoader`` parses with the :phpfunction:`parse_ini_file` function, - therefore, you can only set parameters to string values. To set parameters - to other data types (e.g. boolean, integer, etc), the other loaders - are recommended. + The ``IniFileLoader`` parses the file contents using the + :phpfunction:`parse_ini_file` function, therefore, you can only set + parameters to string values. To set parameters to other data types + (e.g. boolean, integer, etc), the other loaders are recommended. Installation ------------