8000 Mention the handy `ignoreExtraKeys()` method · symfony/symfony-docs@c175b0d · GitHub
[go: up one dir, main page]

Skip to content

Commit c175b0d

Browse files
authored
Mention the handy ignoreExtraKeys() method
1 parent 510c6d8 commit c175b0d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/config/definition.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ Before defining the children of an array node, you can provide options like:
210210
If called (with ``false``), keys with dashes are *not* normalized to underscores.
211211
It is recommended to use this with prototype nodes where the user will define
212212
a key-value map, to avoid an unnecessary transformation.
213+
``ignoreExtraKeys()``
214+
Allows extra config keys to be specified under an array without
215+
throwing an exception.
213216

214217
A basic prototyped array configuration can be defined as follows::
215218

0 commit comments

Comments
 (0)
0