$62 GRAYBYTE WORDPRESS FILE MANAGER $97

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/php54/usr/share/pear/Symfony/Component/Config/Definition/Builder/

HOME
Current File : /opt/alt/php54/usr/share/pear/Symfony/Component/Config/Definition/Builder//TreeBuilder.php
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * 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 <[email protected]>
 */
class TreeBuilder implements NodeParentInterface
{
    protected $tree;
    protected $root;
    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);
    }
}


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.54 PM
root / root
0755
ArrayNodeDefinition.php
14.242 KB
18 Dec 2019 11.22 AM
root / root
0644
BooleanNodeDefinition.php
0.923 KB
18 Dec 2019 11.22 AM
root / root
0644
EnumNodeDefinition.php
1.179 KB
18 Dec 2019 11.22 AM
root / root
0644
ExprBuilder.php
5.035 KB
18 Dec 2019 11.22 AM
root / root
0644
FloatNodeDefinition.php
0.743 KB
18 Dec 2019 11.22 AM
root / root
0644
IntegerNodeDefinition.php
0.754 KB
18 Dec 2019 11.22 AM
root / root
0644
MergeBuilder.php
1.37 KB
18 Dec 2019 11.22 AM
root / root
0644
NodeBuilder.php
5.924 KB
18 Dec 2019 11.22 AM
root / root
0644
NodeDefinition.php
7.234 KB
18 Dec 2019 11.22 AM
root / root
0644
NodeParentInterface.php
0.436 KB
18 Dec 2019 11.22 AM
root / root
0644
NormalizationBuilder.php
1.551 KB
18 Dec 2019 11.22 AM
root / root
0644
NumericNodeDefinition.php
1.586 KB
18 Dec 2019 11.22 AM
root / root
0644
ParentNodeDefinitionInterface.php
0.593 KB
18 Dec 2019 11.22 AM
root / root
0644
ScalarNodeDefinition.php
0.716 KB
18 Dec 2019 11.22 AM
root / root
0644
TreeBuilder.php
1.638 KB
18 Dec 2019 11.22 AM
root / root
0644
ValidationBuilder.php
1.089 KB
18 Dec 2019 11.22 AM
root / root
0644
VariableNodeDefinition.php
1.625 KB
18 Dec 2019 11.22 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF