__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* 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;
use Symfony\Component\Config\Definition\VariableNode;
/**
* This class provides a fluent interface for defining a node.
*
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
*/
class VariableNodeDefinition extends NodeDefinition
{
/**
* Instantiate a Node.
*/
protected function instantiateNode(): VariableNode
{
return new VariableNode($this->name, $this->parent, $this->pathSeparator);
}
protected function createNode(): NodeInterface
{
$node = $this->instantiateNode();
if (isset($this->normalization)) {
$node->setNormalizationClosures($this->normalization->before);
}
if (isset($this->merge)) {
$node->setAllowOverwrite($this->merge->allowOverwrite);
}
if (true === $this->default) {
$node->setDefaultValue($this->defaultValue);
}
$node->setAllowEmptyValue($this->allowEmptyValue);
$node->addEquivalentValue(null, $this->nullEquivalent);
$node->addEquivalentValue(true, $this->trueEquivalent);
$node->addEquivalentValue(false, $this->falseEquivalent);
$node->setRequired($this->required);
if ($this->deprecation) {
$node->setDeprecated($this->deprecation['package'], $this->deprecation['version'], $this->deprecation['message']);
}
if (isset($this->validation)) {
$node->setFinalValidationClosures($this->validation->rules);
}
return $node;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ArrayNodeDefinition.php | File | 15.67 KB | 0644 |
|
| BooleanNodeDefinition.php | File | 1.18 KB | 0644 |
|
| BuilderAwareInterface.php | File | 606 B | 0644 |
|
| EnumNodeDefinition.php | File | 1.16 KB | 0644 |
|
| ExprBuilder.php | File | 5.57 KB | 0644 |
|
| FloatNodeDefinition.php | File | 753 B | 0644 |
|
| IntegerNodeDefinition.php | File | 764 B | 0644 |
|
| MergeBuilder.php | File | 1.2 KB | 0644 |
|
| NodeBuilder.php | File | 5.04 KB | 0644 |
|
| NodeDefinition.php | File | 7.84 KB | 0644 |
|
| NodeParentInterface.php | File | 447 B | 0644 |
|
| NormalizationBuilder.php | File | 1.46 KB | 0644 |
|
| NumericNodeDefinition.php | File | 1.83 KB | 0644 |
|
| ParentNodeDefinitionInterface.php | File | 1.14 KB | 0644 |
|
| ScalarNodeDefinition.php | File | 726 B | 0644 |
|
| TreeBuilder.php | File | 1.54 KB | 0644 |
|
| ValidationBuilder.php | File | 986 B | 0644 |
|
| VariableNodeDefinition.php | File | 1.81 KB | 0644 |
|