diff --git a/components/config/definition.rst b/components/config/definition.rst index b4b0dcd5c19..396328ef687 100644 --- a/components/config/definition.rst +++ b/components/config/definition.rst @@ -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) @@ -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 ----------------- diff --git a/components/config/introduction.rst b/components/config/introduction.rst index 11dae2e1d78..b4d075c3b58 100644 --- a/components/config/introduction.rst +++ b/components/config/introduction.rst @@ -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 ------------ diff --git a/components/config/resources.rst b/components/config/resources.rst index a1d46565803..1a5fba23c2b 100644 --- a/components/config/resources.rst +++ b/components/config/resources.rst @@ -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 ------------------