ArrayNodeDefinition::requiresAtLeastOneElement()

ArrayNodeDefinition requiresAtLeastOneElement() Requires the node to have at least one element. This method is applicable to prototype nodes only. Return Value ArrayNodeDefinition

ArrayNodeDefinition::prototype()

NodeDefinition prototype(string $type) Sets a prototype for child nodes. Parameters string $type the type of node Return Value NodeDefinition

ArrayNodeDefinition::performNoDeepMerging()

ArrayNodeDefinition performNoDeepMerging() Disables the deep merging of the node. Return Value ArrayNodeDefinition

ArrayNodeDefinition::normalizeKeys()

ArrayNodeDefinition normalizeKeys(bool $bool) Sets key normalization. Parameters bool $bool Whether to enable key normalization Return Value ArrayNodeDefinition

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

ArrayNodeDefinition::fixXmlConfig()

ArrayNodeDefinition fixXmlConfig(string $singular, string $plural = null) Sets a normalization rule for XML configurations. Parameters string $singular The key to remap string $plural The plural of the key for irregular plurals Return Value ArrayNodeDefinition

ArrayNodeDefinition::disallowNewKeysInSubsequentConfigs()

ArrayNodeDefinition disallowNewKeysInSubsequentConfigs() Disallows adding news keys in a subsequent configuration. If used all keys have to be defined in the same configuration file. Return Value ArrayNodeDefinition

ArrayNodeDefinition::children()

children() Returns a builder to add children nodes.

ArrayNodeDefinition::canBeUnset()

ArrayNodeDefinition canBeUnset(bool $allow = true) Sets whether the node can be unset. Parameters bool $allow Return Value ArrayNodeDefinition

ArrayNodeDefinition::canBeEnabled()

ArrayNodeDefinition canBeEnabled() Adds an "enabled" boolean to enable the current section. By default, the section is disabled. If any configuration is specified then the node will be automatically enabled: enableableArrayNode: {enabled: true, ...} # The config is enabled & default values get overridden enableableArrayNode: ~ # The config is enabled & use the default values enableableArrayNode: true # The config is enabled & use the default values enableableArrayNod