Skip to content

Minor improvement in the node types explanation #5044

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
merged 4 commits into from
Mar 14, 2015
Merged
Show file tree
Hide file tree
Changes from all 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
9 changes: 5 additions & 4 deletions components/config/definition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ Node Type
~~~~~~~~~

It is possible to validate the type of a provided value by using the appropriate
node definition. Node type are available for:
node definition. Node types are available for:

* scalar
* scalar (generic type that includes booleans, strings, integers, floats and ``null``)
* boolean
* integer (new in 2.2)
* float (new in 2.2)
* enum (new in 2.1)
* enum (new in 2.1) (similar to scalar, but it only allows a finite set of values)
* array
* variable (no validation)

Expand Down Expand Up @@ -294,7 +294,8 @@ All options can be documented using the
:method:`Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::info`
method.

The info will be printed as a comment when dumping the configuration tree.
The info will be printed as a comment when dumping the configuration tree with
the ``config:dump`` command.

Optional Sections
-----------------
Expand Down
7 changes: 0 additions & 7 deletions components/config/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ The Config Component
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 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
------------

Expand Down
7 changes: 7 additions & 0 deletions components/config/resources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
Loading Resources
=================

.. caution::

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.

Locating Resources
------------------

Expand Down