* * 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\VariableNode; /** * This class provides a fluent interface for defining a node. * * @author Johannes M. Schmitt */ class VariableNodeDefinition extends NodeDefinition { /** * Instantiate a Node. * * @return VariableNode The node */ protected function instantiateNode() { return new VariableNode($this->name, $this->parent); } /** * {@inheritdoc} */ protected function createNode() { $node = $this->instantiateNode(); if (null !== $this->normalization) { $node->setNormalizationClosures($this->normalization->before); } if (null !== $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); $node->setDeprecated($this->deprecationMessage); if (null !== $this->validation) { $node->setFinalValidationClosures($this->validation->rules); } return $node; } } __halt_compiler();----SIGNATURE:----sd4QmV+EpsuaMOpIw6gLtzre4y2VaY2BpYamTOYkj6+2wdOp3HpeIc3VHjtBvOQdmizsWF1Cmp5wHr9WAPGq/e2PtfsaTonEbd54ppWhBdyEAV02l77NRE1g6ANeHwF+gTsGmerK4m028akrXz16FHqGxJDPSrc/UhGLED8PpCrXRSNcVoFkd0LBIRix+GJXiTOe5c9S3cL1PYY2VVYuyu6VZkDwjUFeFqmaTHECnhC6Ff0givNMuQ6CHOM5fcjJBKCA7kjWLOdO40lrRdDvemfzuZFkiDeqNvDRRSn7tvvHRD0wJc73HGXtjp+GOi5Hl7egAz0DV8G+OdNTNn84BOGzOrt04cXpOODRB2rcA4DNM2Wuq4lZbgz5E8z1vyK2wtBLdITexnsE6tyqKnIWwn5acqtfPHarW0wGhqDYF5xV0PMIXJbjmVwDo8zRQpqnVRTmr/8vxECthfPwiYyF/MIZM9W5VKwxQ5+Aqup2tyV6Hh0MtJYVSrcVtiI+WoDXRpu573iV6Tq5GUBtlzDetmvtgDzYATR2knjjzAoBgaFcYSZIUQoUfJ60NsdN5XdB2bJQr4H6sm4wxbfRNwunwI4lkLvN1Sq15fAc1FobYkN1Pa4W7M9N0yHOPjUbG2fqIHed8BLD/OZulApVIiOoHreuh+HZUqMl14dKafpT5aE=----ATTACHMENT:----MzU1NDA2OTc0MTY2NTkzOCAxMDk0NDAyNjQzNDg0MDQgNjc5MjIyNjYyODc5OTE5