Skip to content

Commit 1d1b91d

Browse files
committed
minor symfony#3431 [Config] add cautionary note on ini file loader limitation (cordoval)
This PR was merged into the 2.3 branch. Discussion ---------- [Config] add cautionary note on ini file loader limitation | Q | A | | --- | --- | | Doc fix? | yes | | New docs? | no | | Applies to | 2.3+ | | Fixed tickets | symfony#2517 | | License | CC-ASA 3.0 Unported | Sent using [Gush](https://github.com/cordoval/gush) Commits ------- 4f02a8a address comments dd3dd70 address comments, even the Boolean one 4436dae add warning for inifile loader
2 parents 0dac73f + 4f02a8a commit 1d1b91d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/config/introduction.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ The Config component provides several classes to help you find, load, combine,
1212
autofill and validate configuration values of any kind, whatever their source
1313
may be (YAML, XML, INI files, or for instance a database).
1414

15+
.. caution::
16+
17+
The ``IniFileLoader`` parses the file contents using the
18+
:phpfunction:`parse_ini_file` function, therefore, you can only set
19+
parameters to string values. To set parameters to other data types
20+
(e.g. boolean, integer, etc), the other loaders are recommended.
21+
1522
Installation
1623
------------
1724

0 commit comments

Comments
 (0)