Skip to content

[Config] add cautionary note on ini file loader limitation #3431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions components/config/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::

The ``IniFileLoader`` parses with the :phpfunction:`parse_ini_file` function,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The IniFileLoader parses the file contents using the :phpfunction:parse_ini_file function. Therefore, [...]

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
------------

Expand Down