ArrayParserCache

class ArrayParserCache implements ParserCacheInterface Methods ParsedExpression|null fetch(string $key) Fetches an expression from the cache. save(string $key, ParsedExpression $expression) Saves an expression in the cache. Details ParsedExpression|null fetch(string $key) Fetches an expression from the cache. Parameters string $key The cache key Return Value ParsedExpression|null save(string $key, ParsedExp

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::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::normalizeKeys()

ArrayNodeDefinition normalizeKeys(bool $bool) Sets key normalization. Parameters bool $bool Whether to enable key normalization 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::children()

children() Returns a builder to add children nodes.

ArrayNodeDefinition::canBeDisabled()

ArrayNodeDefinition canBeDisabled() Adds an "enabled" boolean to enable the current section. By default, the section is enabled. 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