ArrayNodeDefinition::setBuilder()

setBuilder(NodeBuilder $builder) Sets a custom children builder. Parameters NodeBuilder $builder

ArrayNodeDefinition::useAttributeAsKey()

ArrayNodeDefinition useAttributeAsKey(string $name, bool $removeKeyItem = true) Sets the attribute which value is to be used as key. This is useful when you have an indexed array that should be an associative array. You can select an item from within the array to be the key of the particular item. For example, if "id" is the "key", then: array( array('id' => 'my_name', 'foo' => 'bar'), ); becomes array( 'my_name' => array('foo' => 'bar'), ); If you'd like "

ArrayNodeDefinition::normalizeKeys()

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

ArrayNodeDefinition::performNoDeepMerging()

ArrayNodeDefinition performNoDeepMerging() Disables the deep merging of the node. 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::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::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::append()

append(NodeDefinition $node) Appends a node definition. $node = new ArrayNodeDefinition() ->children() ->scalarNode('foo')->end() ->scalarNode('baz')->end() ->end() ->append($this->getBarNodeDefinition()) ; Parameters NodeDefinition $node

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