class TreeBuilder implements NodeParentInterface
This is the entry class for building a config tree.
protected | $tree | ||
protected | $root |
ArrayNodeDefinition|NodeDefinition | root(string $name, string $type = 'array', NodeBuilder $builder = null) Creates the root node. | |
NodeInterface | buildTree() Builds the tree. | |
setPathSeparator(string $separator) |
Creates the root node.
string | $name | The name of the root node |
string | $type | The type of the root node |
NodeBuilder | $builder | A custom node builder instance |
ArrayNodeDefinition|NodeDefinition | The root node (as an ArrayNodeDefinition when the type is 'array') |
RuntimeException | When the node type is not supported |
Builds the tree.
NodeInterface |
RuntimeException |
string | $separator |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Config/Definition/Builder/TreeBuilder.html