Метод | Описание | |
---|---|---|
__construct ( $name, NodeParentInterface $parent = null ) | ||
addDefaultChildrenIfNoneSet ( integer | string | array | null $children = null ) : |
Adds children with a default value when none are defined. | |
addDefaultsIfNotSet ( ) : |
Adds the default value if the node is not set in the configuration. | |
append ( Symfony\Component\Config\Definition\Builder\NodeDefinition $node ) : |
Appends a node definition. | |
arrayPrototype ( ) : |
||
booleanPrototype ( ) : Symfony\Component\Config\Definition\Builder\BooleanNodeDefinition | ||
canBeDisabled ( ) : |
Adds an "enabled" boolean to enable the current section. | |
canBeEnabled ( ) : |
Adds an "enabled" boolean to enable the current section. | |
canBeUnset ( boolean $allow = true ) : |
Sets whether the node can be unset. | |
children ( ) : Symfony\Component\Config\Definition\Builder\NodeBuilder | Returns a builder to add children nodes. | |
disallowNewKeysInSubsequentConfigs ( ) : |
Disallows adding news keys in a subsequent configuration. | |
enumPrototype ( ) : Symfony\Component\Config\Definition\Builder\EnumNodeDefinition | ||
fixXmlConfig ( string $singular, string $plural = null ) : |
Sets a normalization rule for XML configurations. | |
floatPrototype ( ) : Symfony\Component\Config\Definition\Builder\FloatNodeDefinition | ||
ignoreExtraKeys ( boolean $remove = true ) : |
Allows extra config keys to be specified under an array without throwing an exception. | |
integerPrototype ( ) : Symfony\Component\Config\Definition\Builder\IntegerNodeDefinition | ||
normalizeKeys ( boolean $bool ) : |
Sets key normalization. | |
performNoDeepMerging ( ) : |
Disables the deep merging of the node. | |
prototype ( string $type ) : Symfony\Component\Config\Definition\Builder\NodeDefinition | Sets a prototype for child nodes. | |
requiresAtLeastOneElement ( ) : |
Requires the node to have at least one element. | |
scalarPrototype ( ) : Symfony\Component\Config\Definition\Builder\ScalarNodeDefinition | ||
setBuilder ( Symfony\Component\Config\Definition\Builder\NodeBuilder $builder ) | Sets a custom children builder. | |
useAttributeAsKey ( string $name, boolean $removeKeyItem = true ) : |
Sets the attribute which value is to be used as key. | |
variablePrototype ( ) : Symfony\Component\Config\Definition\Builder\VariableNodeDefinition |
Метод | Описание | |
---|---|---|
createNode ( ) | ||
getNodeBuilder ( ) : Symfony\Component\Config\Definition\Builder\NodeBuilder | Returns a node builder to be used to add children and prototype. | |
validateConcreteNode ( Symfony\Component\Config\Definition\ArrayNode $node ) | Validate the configuration of a concrete node. | |
validatePrototypeNode ( |
Validate the configuration of a prototype node. |
public __construct ( $name, NodeParentInterface $parent = null ) | ||
$parent | NodeParentInterface |
public addDefaultChildrenIfNoneSet ( integer | string | array | null $children = null ) : |
||
$children | integer | string | array | null | The number of children|The child name|The children names to be added This method is applicable to prototype nodes only. |
Результат |
public addDefaultsIfNotSet ( ) : |
||
Результат |
public append ( Symfony\Component\Config\Definition\Builder\NodeDefinition $node ) : |
||
$node | Symfony\Component\Config\Definition\Builder\NodeDefinition | A NodeDefinition instance |
Результат | This node |
public arrayPrototype ( ) : |
||
Результат |
public booleanPrototype ( ) : Symfony\Component\Config\Definition\Builder\BooleanNodeDefinition | ||
Результат | Symfony\Component\Config\Definition\Builder\BooleanNodeDefinition |
public canBeDisabled ( ) : |
||
Результат |
public canBeEnabled ( ) : |
||
Результат |
public canBeUnset ( boolean $allow = true ) : |
||
$allow | boolean | |
Результат |
public children ( ) : Symfony\Component\Config\Definition\Builder\NodeBuilder | ||
Результат | Symfony\Component\Config\Definition\Builder\NodeBuilder |
public disallowNewKeysInSubsequentConfigs ( ) : |
||
Результат |
public enumPrototype ( ) : Symfony\Component\Config\Definition\Builder\EnumNodeDefinition | ||
Результат | Symfony\Component\Config\Definition\Builder\EnumNodeDefinition |
public fixXmlConfig ( string $singular, string $plural = null ) : |
||
$singular | string | The key to remap |
$plural | string | The plural of the key for irregular plurals |
Результат |
public floatPrototype ( ) : Symfony\Component\Config\Definition\Builder\FloatNodeDefinition | ||
Результат | Symfony\Component\Config\Definition\Builder\FloatNodeDefinition |
protected getNodeBuilder ( ) : Symfony\Component\Config\Definition\Builder\NodeBuilder | ||
Результат | Symfony\Component\Config\Definition\Builder\NodeBuilder | The node builder |
public ignoreExtraKeys ( boolean $remove = true ) : |
||
$remove | boolean | Whether to remove the extra keys |
Результат |
public integerPrototype ( ) : Symfony\Component\Config\Definition\Builder\IntegerNodeDefinition | ||
Результат | Symfony\Component\Config\Definition\Builder\IntegerNodeDefinition |
public normalizeKeys ( boolean $bool ) : |
||
$bool | boolean | Whether to enable key normalization |
Результат |
public performNoDeepMerging ( ) : |
||
Результат |
public requiresAtLeastOneElement ( ) : |
||
Результат |
public scalarPrototype ( ) : Symfony\Component\Config\Definition\Builder\ScalarNodeDefinition | ||
Результат | Symfony\Component\Config\Definition\Builder\ScalarNodeDefinition |
public setBuilder ( Symfony\Component\Config\Definition\Builder\NodeBuilder $builder ) | ||
$builder | Symfony\Component\Config\Definition\Builder\NodeBuilder | A custom NodeBuilder |
public useAttributeAsKey ( string $name, boolean $removeKeyItem = true ) : |
||
$name | string | The name of the key |
$removeKeyItem | boolean | Whether or not the key item should be removed |
Результат |
protected validateConcreteNode ( Symfony\Component\Config\Definition\ArrayNode $node ) | ||
$node | Symfony\Component\Config\Definition\ArrayNode | The related node |
protected validatePrototypeNode ( |
||
$node | The related node |
public variablePrototype ( ) : Symfony\Component\Config\Definition\Builder\VariableNodeDefinition | ||
Результат | Symfony\Component\Config\Definition\Builder\VariableNodeDefinition |