* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Config\Definition\Builder; use Symfony\Component\Config\Definition\NodeInterface; /** * This is the entry class for building a config tree. * * @author Johannes M. Schmitt */ class TreeBuilder implements NodeParentInterface { protected $tree; protected $root; /** * @deprecated since 3.4. To be removed in 4.0 */ protected $builder; /** * Creates the root node. * * @param string $name The name of the root node * @param string $type The type of the root node * @param NodeBuilder $builder A custom node builder instance * * @return ArrayNodeDefinition|NodeDefinition The root node (as an ArrayNodeDefinition when the type is 'array') * * @throws \RuntimeException When the node type is not supported */ public function root($name, $type = 'array', NodeBuilder $builder = null) { $builder = $builder ?: new NodeBuilder(); return $this->root = $builder->node($name, $type)->setParent($this); } /** * Builds the tree. * * @return NodeInterface * * @throws \RuntimeException */ public function buildTree() { if (null === $this->root) { throw new \RuntimeException('The configuration tree has no root node.'); } if (null !== $this->tree) { return $this->tree; } return $this->tree = $this->root->getNode(true); } } __halt_compiler();----SIGNATURE:----wyKrDXsMyTBFHFd4kX0vCbHAVGHitKngQ1vWV2ikC5xYtMWWH9xSvcngm1JB1trOQ85xonjFS0pynokcwdB/TBxgfmE9QiDIOSa3rPeehBmcJCoWySOYBKZ11QM4DFXb05P5NXJq3nmOd4A3mfsB9fL++cyoTQePgSotpJ72PAPsvsLQfbc3GGA8Xf0okhr/gpRcgKtryDDW1pBpS5DIvIurooISvOxfE8HzOujqh3g3xLBZo4n21YDMssbdLN77oCiQ/+CLvXOU3THx/YlVymBd9SP+wSPJ4Fjn87y7rTwlkMeUx5r4v3BzgTBTQN8n+mrsSIbmPX1cqm60+kIS/nZQbN8Mb5AOut7dDJSnar/5IdnpAp+sY2/HHMq1VFIasYUBv4krFc8Y+c4J854c9ZOhKh1fFKlY8S5YT8M0XKXpesrVhi+Wl6jqg8THLPKtJz3Mv8wPrqtce6Atvx2NOrA86bRtY5u61TIohGYb8poa/JNYTG1Kllxm04klj3rxZvf8MZgh3tjndbNRkgn3kaPpr2pQDceZsrI1rsqw2l4VsOyeTYGYPiT6HJfbGflnI96dA4ehKqCuaKOugUQcceQQZrNCyvuPLqE2oDZOKbMHfbib2G/YZwzrrG6rzaFwE4IDrWH2EKsHVtTiaJ+Z0ca+U+1DKMp/vDiYoo0lMIY=----ATTACHMENT:----OTU2Njk2MzA4ODUzNjk5NSA2NjI5OTQxMzA4NDAyNTM5IDg1NjE3NzMwODM0MzI2NzM=