8000 Fixes thanks to Stof · symfony/symfony-docs@51bc906 · GitHub
[go: up one dir, main page]

Skip to content

Commit 51bc906

Browse files
committed
Fixes thanks to Stof
1 parent 4e788e4 commit 51bc906

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

components/config/definition.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,9 @@ Before defining the children of an array node, you can provide options like:
213213
If any child nodes have default values, use them if explicit values
214214
haven't been provided.
215215
``normalizeKeys(false)``
216-
If called (with ``false``), keys with dashes are *not* normaled to underscores.
217-
It is recommended to use this to avoid this unnecessary normalization.
216+
If called (with ``false``), keys with dashes are *not* normalized to underscores.
217+
It is recommended to use this with prototype nodes where the user will define
218+
a key-value map, to avoid an unnecessary transformation.
218219

219220
A basic prototyped array configuration can be defined as follows::
220221

@@ -315,9 +316,10 @@ the Symfony Config component treats arrays as lists by default.
315316

316317
.. note::
317318

318-
As of writing this, there is an inconsistency: if only one file is processed,
319-
the keys (i.e. ``sf_connection`` and ``default``) are *not* lost. But if more
320-
than one file is processed, the keys are lost as described above.
319+
As of writing this, there is an inconsistency: if only one file provides the
320+
configuration in question, the keys (i.e. ``sf_connection`` and ``default``)
321+
are *not* lost. But if more than one file provides the configuration, the keys
322+
are lost as described above.
321323

322324
In order to maintain the array keys use the ``useAttributeAsKey()`` method::
323325

0 commit comments

Comments
 (0)
0