ArrayNodeDefinition::ignoreExtraKeys()

ArrayNodeDefinition ignoreExtraKeys(bool $remove = true)

Allows extra config keys to be specified under an array without throwing an exception.

Those config values are simply ignored and removed from the resulting array. This should be used only in special cases where you want to send an entire configuration array through a special tree that processes only part of the array.

Parameters

bool $remove Whether to remove the extra keys

Return Value

ArrayNodeDefinition
doc_Symfony
2016-10-28 06:06:03
Comments
Leave a Comment

Please login to continue.